A beginner's log4J question

Posted by Nitesh Panchal on Stack Overflow See other posts from Stack Overflow or by Nitesh Panchal
Published on 2010-05-29T11:18:33Z Indexed on 2010/05/29 11:22 UTC
Read the original article Hit count: 207

Filed under:
|

Hello,

i configured log4j for basic purpose usin the conversion pattern :-

log4j.appender.rollingFile.layout.ConversionPattern=%p %t %c - %m%n

But now i want to log the class name from which the error came as well as the username(available in session object) as well as the date and time when that event occurs. How do i do this? What changes do i need to make in format string?

Thanks in advance :)

© Stack Overflow or respective owner

Related posts about java

Related posts about log4j