How can I ensure that all timestamps that my log4j is using, are in GMT?
I have tried the following but it prints “GMT” inside the timestamp
log4j.appender.ConversionPattern=%d{HH\:mm\:ss,SSS}{GMT} %-4r %-5p [%t] %3x - %m%n
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have log4j-1.2.16 and the following lines work properly:
If it doesn’t work, then you have to download extras (companios section).
This package contains EnhancedPatternLayout:
Download apache-log4j-extras