<div dir="ltr"><div>Hi John,<br><br></div>Yes, INFO, or I think that ALL works as well.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 25, 2014 at 12:25 PM, John Smith <span dir="ltr"><<a href="mailto:tomcat.random@gmail.com" target="_blank">tomcat.random@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks. That seems easy. <div><br></div><div>When you say "<span style="font-family:arial,sans-serif;font-size:13px">You would want to make sure that ALL logging is turned on for the security logger at all times" are you just saying the log level of "securityLogger" is set to the same in the config? ie:</span></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><logger name="securityLogger" level="INFO"><br></font><div class="gmail_extra">...</div><div class="gmail_extra">securtyLogger.info("...");</div><div><div class="h5"><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 25, 2014 at 12:13 PM, Donald McLean <span dir="ltr"><<a href="mailto:dmclean62@gmail.com" target="_blank">dmclean62@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi John,<br><br>There is an alternate version of "getLogger" that takes a string, which can be anything and specifies the name of the logger. The form that takes a class sets the logger's name to be the full class name.<br></div><br></div>final static Logger securityLogger = LoggerFactory.getLogger("securityLogger");<br><br></div>You would want to make sure that ALL logging is turned on for the security logger at all times.<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Thu, Sep 25, 2014 at 12:01 PM, John Smith <span dir="ltr"><<a href="mailto:tomcat.random@gmail.com" target="_blank">tomcat.random@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr">I use logback in my application to log errors and, if necessary, warnings and info. It's set up and it works great.<div><br></div><div>I'd like to have a separate log that keeps track of user activity within our admin tools. For example, say user x deleted some information using the admin tools, I'd like to log that. </div><div><br></div><div>In some cases there might be both error logging and user behavior logging in the same class. I'm not clear on how you would separate the two, since I'm using the LoggerFactory with the class name:</div><div><br></div><div> final static Logger logger = LoggerFactory.getLogger(UserDB.class);<br></div><div><br></div><div>What would be the best way of doing this?</div><div><br></div><div>TIA,</div><div>John</div><div><div><br></div><div><br></div></div></div>
<br></div></div>_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><span><font color="#888888"><br></font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br>Family photographs are a critical legacy for<br>ourselves and our descendants. Protect that<br>legacy with a digital backup and recovery plan.
</font></span></div>
<br>_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br></blockquote></div><br></div></div></div></div></div>
<br>_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br></blockquote></div><br><br clear="all"><br>-- <br>Family photographs are a critical legacy for<br>ourselves and our descendants. Protect that<br>legacy with a digital backup and recovery plan.
</div>