J
Joona I Palaste
Suppose I make my own implementation of org.apache.log4j.Level. Call it
FOOBAR.
Now in the style of the Log4J example configuration file (to be parsed
with PropertyConfigurator):
log4j.rootLogger=DEBUG, A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
# Print the date in ISO 8601 format
log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
# Print only messages of level WARN or above in the package com.foo.
log4j.logger.com.foo=WARN
Can I somehow change the last line to:
log4j.logger.com.foo=FOOBAR
and expect logs from com.foo or its subloggers come at level FOOBAR or
above?
FOOBAR.
Now in the style of the Log4J example configuration file (to be parsed
with PropertyConfigurator):
log4j.rootLogger=DEBUG, A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
# Print the date in ISO 8601 format
log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
# Print only messages of level WARN or above in the package com.foo.
log4j.logger.com.foo=WARN
Can I somehow change the last line to:
log4j.logger.com.foo=FOOBAR
and expect logs from com.foo or its subloggers come at level FOOBAR or
above?