you hit the nail in the head!! I made a ticket for this a while back and it is scheduled for the next release. Basically, I also found out that it was sometimes necessary to have logging levels at the appender level. So the last line of defense is on the Appender, if you so desire.
So yes, this enhancement request is logged and coming
then ensuring I use
logbox.getLogger(this) everywhere rather than the older plugin
Sean, in 3.0.0 all plugins, handlers, layouts, views, and interceptors have several objects available to them in the variables scope.
- controller : The main coldbox controller
- logBox : A reference to LogBox
- log : A pre-configured logger object using getLogger(this)
- flas : A reference to the configured Flash Scope:
Apart from that one apparent limitation, LogBox seems very powerful
and very sophisticated. I think we’ll be using a custom appender that extends the DB appender
but maps the extra info to more columns in the DB to make it easier to
do reporting and analytics against the events we’ll be logging. Still
investigating that so any input would be welcome!
Thanks Sean!! LogBox has really made my loggin in CF FUN AGAIN! Creating appenders left and right, using debug mode to trigger logging levels so I can see stuff in production while in debug mode, etc. It has really opened up LOTS AND LOTS of possibilites.
The cool thing is that not only does the appenders receive messages but also an extraInfo data argument which can be ANYTHING. Then each appender can determine how to treat that argument and log it accordingly. You can pass objects, structures or whatever here and then have each appender customize it as you see fit.
You can also create your own appender layouts, so basically, reuse the appender but just change the way the message gets logged, kinda like formatting YOUR way.
Anyways, as you can see, I also get giddy and excited about LogBox!! Please send me all your requests and make Logging FUN AGAIN!! (* Geek Alert *)
Luis F. Majano
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
IECFUG Manager: http://www.iecfug.com