Re: Where is logName used?

2015-01-16 Thread James Green
We just upgraded to log4j2. We are logging via slf4j. Given: onException(AccountNotFoundException.class).log(LoggingLevel.WARN, com.foo.server.ngw, Account not found); We see in the Tomcat log: 2015-01-16 10:45:07,357 WARN [http-bio-8080-exec-1] org.apache.camel.util.CamelLogger

Re: Where is logName used?

2015-01-15 Thread James Green
log4j.appender.console=org.apache.log4j.ConsoleAppender log4j.appender.console.layout=org.apache.log4j.PatternLayout log4j.appender.console.layout.ConversionPattern=%d{ABSOLUTE} %5p %C:%L %M() - %m%n ### set log levels - for more verbose logging change 'info' to 'debug' ### log4j.rootLogger=debug,

Re: Where is logName used?

2015-01-15 Thread Claus Ibsen
Hi Kinda weird as that log name refers to the slf4j marker which you can also use. Are you sure the log() method you use, its the logger name and not some marker parameter? Also you do not use any custom logger instance, as if so then that is used over what you specify in the log method,.

Re: Where is logName used?

2015-01-14 Thread Willem Jiang
The “com.foo.server.ngw.router” is the log name to use, I’m not sure why the “org.slf4j.helpers.MarkerIgnoringBase” is used. Can you double check your log configuration to make sure you setup the log rightly? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog:

Where is logName used?

2015-01-13 Thread James Green
The following code: .log(LoggingLevel.ERROR, com.foo.server.ngw.router, Account Not Found. Message discarded.).stop(); Results in the following in the log: 10:12:11,690 ERROR org.slf4j.helpers.MarkerIgnoringBase:145 error() - Account Not Found. Message discarded. I was