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, console
log4j.logger.org=warn
log4j.logger.com=warn
log4j.logger.com.example=debug
log4j.logger.org.hibernate=warn
log4j.logger.org.springframework.transaction=warn
log4j.logger.com.foo=debug

Not much I can really say about that except it's a variant of what is
widely given as basic examples.

Does this help explain why the logName is not used at all?


On 14 January 2015 at 14:06, Willem Jiang <willem.ji...@gmail.com> wrote:

> 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: http://willemjiang.blogspot.com (English)
> http://jnn.iteye.com (Chinese)
> Twitter: willemjiang
> Weibo: 姜宁willem
>
>
>
> On January 13, 2015 at 6:17:48 PM, James Green (james.mk.gr...@gmail.com)
> wrote:
> > 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 expecting to see com.foo.server.ngw.router somewhere above? Not
> sure
> > what else it is supplied for..?
> >
> > James
> >
>
>

Reply via email to