I just found out that the some of the debug is showing up in the jboss server log instead of my own log file... 

My app is a ear that is deployed on JBoss AS 7. 
I have a EJB module and in the ear/lib dir some helper classes in a jar file. 

It looks like the classes in the EJB module is debugging to the jboss server log, and the classes in the helper jar is debugging to my log file... 




On Wed, Apr 10, 2013 at 3:31 PM, Kristian Lind <klpcrap@gmail.com> wrote:
Even though I start up the server, JBoss AS 7, and the log is set to debug.. and I have this in the file.. 

log.info("createOrder, consumerId = {}", new Object[] { consumerId });
log.debug("{}", new Object[] { orderXml });

only the info is in the console, but nothing is in the log file.. ?? 

In another class I have a log .. here I can turn on / off the debug.. works fine. 










On Wed, Apr 10, 2013 at 2:33 PM, Robert Kuhar <robertkuhar@gmail.com> wrote:
It takes 8 or so "logging events" before it actually starts logging on the transition.  If you keep passing through the "Hi There" code, does it eventually show up?  Alternatively, if you start your Java program, does "Hi There" now show up at DEBUG?  I know I was surprised to learn of the "8 or so logging events" buffer the first time I encountered it.


On Wed, Apr 10, 2013 at 2:22 PM, Kristian Lind <klpcrap@gmail.com> wrote:

logback 1.0.9
slf4j 1.7.3

In code : 

package com.mycomp.xx
....
log.debug("Hi there");


in logback.xml

<logger name="com.mycomp.xx" level="DEBUG" />


I can see the in the log, that when I make a change to logback.xml... ( scanned every 30 seconds ) 
.. 

INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.mycomp.xx] to DEBUG


But when executing the code, the log "Hi there" is not in the console or the logfile. 

If I set this.. 

<root level="DEBUG">
        <appender-ref ref="CONSOLE"/>
        <appender-ref ref="FILE"/>
</root>

everything is logged... 

--
Med venlig hilsen / Best regards

Kristian Lind

_______________________________________________
Logback-user mailing list
Logback-user@qos.ch
http://mailman.qos.ch/mailman/listinfo/logback-user


_______________________________________________
Logback-user mailing list
Logback-user@qos.ch
http://mailman.qos.ch/mailman/listinfo/logback-user



--
Med venlig hilsen / Best regards

Kristian Lind



--
Med venlig hilsen / Best regards

Kristian Lind