Browse Source

update logging configuration

pull/3/head
Decebal Suiu 11 years ago
parent
commit
4e7f1e58a8
  1. 13
      demo/app/src/main/resources/log4j.properties
  2. 8
      demo/app/src/main/resources/logging.properties

13
demo/app/src/main/resources/log4j.properties

@ -1,6 +1,15 @@
log4j.rootLogger=DEBUG, Console log4j.rootLogger=DEBUG, Console
#
# PF4J log
#
log4j.logger.ro.fortsoft.pf4j=DEBUG, Console
log4j.additivity.ro.fortsoft.pf4j=false
#
# Appenders
#
log4j.appender.Console=org.apache.log4j.ConsoleAppender log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.conversionPattern=%-5p - %-32.32c{1} - %m\n #log4j.appender.Console.layout.conversionPattern=%-5p - %-32.32c{1} - %m\n
log4j.appender.Console.layout.ConversionPattern=%d %p %c - %m%n

8
demo/app/src/main/resources/logging.properties

@ -1,8 +0,0 @@
#handlers = java.util.logging.ConsoleHandler
handlers = org.slf4j.bridge.SLF4JBridgeHandler
# Set the default logging level for the root logger
.level = ALL
# Set the default formatter for new ConsoleHandler instances
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
Loading…
Cancel
Save