• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Log4j | Disordering in the time of logging

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Following is the sample logging of our application. The appln uses log4j for logging.
If you can notice, the logging is not in order. our application demands the logging to be
in correct order. Can anyone helpme in solving this?


Log4j configuration:


Our application runs on Apache Tomcat/4.1.31 and the servers are in US.

thank you,
Aarnav
 
Arnav Velimala
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Any thoughts/Suggestions/Help ?!!

thanks,
Arnav
 
Arnav Velimala
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

We have figured the solution. just wanna share with you guys...

Actually, the above logging is done by two load-balanced tomcat servers...(sorry that i didn't mention in my problem statement)
One server was using GMT and the other was using a different Timezone. So, there was this difference.

We just set the timezone environment variable("TZ") in startup.sh...and it was logging properly.

thanks & Best Rgds,
Arnav

 
Don't listen to Steve. Just read this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic