Log4j how to create cnsoleAppender and FileAppender
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   KOnstantina_Stamopoulou
Posted On:   Monday, January 9, 2006 10:00 AM

Hello everyone,


Suggestions, codesnippets please?



Thank you in advance

Re: Log4j how to create cnsoleAppender and FileAppender

Posted By:   gomes_gomes  
Posted On:   Monday, January 9, 2006 11:13 PM

hi,
If u trying to create log4j.properties.Put inside of classes folder of ur webapplication

log4j.rootLogger=INFO, stdin
log4j.appender.stdin=org.apache.log4j.ConsoleAppender
log4j.appender.stdin.layout=org.apache.log4j.PatternLayout
log4j.appender.stdin.layout.ConversionPattern= %d %c %x %n%- %m%n

About | Sitemap | Contact