Hi,
Im thinking about using logbox, but i have some questions first.
1. Performance: I tend to use lots of logging statements in my code,
so if something goes wrong, i can set the log level at info and follow
what the code all did. When making logbox, has there been much thought
in its performance? Also, in concurrency issues?
2. I basically place all my app-specific cfc's with the coldbox app i
make. I have another package, called 'common', in which i throw
everything that is re-usable, i try to make most things there coldbox-
independent.
I really miss static functions in coldfusion, so you can do things
like this (in java):
private Logger theLogger
=Logger.getLogger(HelloWorld.class.getName());
In coldfusion you have either to use createobject, or inject it with
coldfspring, but especially in my common package, injecting a logger
into every cfc is a pain.
I made my own logger, which works a lot like logbox, but i noticed all
these createobjects take quite some memory, especially when they are
created in reactor records, or beans, of which a lot can exist at the
same time in some situations.
How is the above solved in logbox?
The other problem, but less a problem, is that because i cant inject
it, i cant propagate the same settings to all logger instances. But i
figured that maybe the automatic detection of a config file by logbox
in the config dir (this is right yes?) will overcome that, because
cfc's in my common package are always created in a coldbox
application.
Again, i dont want to have dependencies on anything other then logbox
when i use it for logging in my framework-independent common package.
Greets,
klaas