here is the best log4J appender ConversionPattern value "%d{MM/dd/yyyy hh:mm:ss aa} [%-5p] [%c{1}] - %m%n", it approved working
it print out the date time, log type and class name and message
remember put it in the appender you expected, because we might have mutiple appender, one for file, one for console, etc.
No comments:
Post a Comment