
Kriti, In the absence of such a parameter, the default timezone for the Java platform is used. Thus, the default behavior corresponds to what you want. I hope this helps, On 6/11/2013 9:53 AM, Kriti Wadhwa wrote:
Hello, As per my understanding currently using following pattern:
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %class{0} %_msg_%n</pattern>
</encoder>
Time stamp printed in log files display time in GMT format by default. Using %date{HH:mm:ss.SSS,Australia/Perth} we can set the timezone to a particular value (In this case Australia/Perth). In my application I need: Time zone to be picked up from local server (/etc/localtime) where the application is running instead of setting it to a specific value in xml as shown above. How can I do this using logback.xml ? Please suggest. Thanks, Kriti