[logback-user] Programmatically create loggers for hibernate, spring ...

zuxiong lin linzuxiong1988 at gmail.com
Thu Sep 1 03:57:12 CEST 2011


Why do you have the need??


Is it:::
<!-- for debug , developers. -->
<logger name="com.google.code" level="ERROR">
<appender-ref ref="APP_ERROR" />
</logger>
<logger name="org.springframework" level="ERROR">
<appender-ref ref="APP_ERROR" />
</logger>
<logger name="org.apache" level="ERROR">
<appender-ref ref="APP_ERROR" />
</logger>
<!-- for debug , developers. end -->

2011/8/31 BAKHTI Mohammed <onlymed at hotmail.com>

>  Hello again :)
>
> Can i programmatically create loggers for spring , hibernate and other
> frameworks? means something like :
>
> logfactory.getlogger("org.springframework");
> and then set the apropriate level ?
>
> Is this possible? because i tried it but don't really think it works
>
> Thanks for help
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20110901/3d2619fd/attachment.html>


More information about the Logback-user mailing list