root = { levelmax="INFO", appenders="*" }
add new one:
myLog = { levelmax="INFO", appenders="coldboxFile2" }
So this new logger with use only new appender.
You can call it in multiple ways:
With wirebox:
logbox:myLog
Or from controller:
getController().getLogBox().getLogger("myLog")
http://wiki.coldbox.org/wiki/LogBox.cfm
Good luck,
Leonty
On Thu, Feb 9, 2012 at 3:32 AM, Daniel Mejia <webma...@gmail.com> wrote:
> coldboxFile
Feel free to create as many named loggers as you want to meet your logging needs. Logger names (or categories) can be named anything you want, but they are intended to be dot-delimited paths like your CFC packages.
In your config, if you name your logger categories things like:
"coldbox.system"
"com.mysite.prducts"
"com.mysite.security"
"com.mysite.security.permssionBean"
Then you can inject "logbox:logger:{this}" into your CFCs which automatically names the logger after the full component path and inherits its settings from the closest named logging category. That way you an control logging settings in an entire package (ex. "com.mysite.security") by changing the settings for that logging category in your config.
http://wiki.coldbox.org/wiki/logbox.cfm
Thanks!
~Brad
Sent from my ASUS Eee Pad
Daniel Mejia <webma...@gmail.com> wrote:
>Is root logger suppose to log everything even if you use different
>appenders for specific logging?
>
>--
>You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
>To post to this group, send email to col...@googlegroups.com
>To unsubscribe from this group, send email to coldbox-u...@googlegroups.com
>For more options, visit this group at http://groups-beta.google.com/group/coldbox
>For News, visit http://blog.coldbox.org
>For Documentation, visit http://wiki.coldbox.org
>