Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

log messages

 
Ann Kanu
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I am using a ServletContext.log("something") in my application running on weblogic, where would the log messages appear.
Currently, I have a log file in my application which I instantiate in my servlet init() method via a LogFile class. My LogFile class has a bunch of static methods which I call to log all the messages of my application both from my servlets as well as the other classes which implement the business logic. Is this a good way to be logging messages. I also didnot synchronize any of the methods in the LogFile class as I felt it would slow down the performance. I am the only one who looks at the log file ... I use it mainly for debugging. If I am logging a lot of messages, is the performance drastically affected by synchronization?
I wanted to find out what is the best method to log messages in my web application.
Thanks
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll move this to the Weblogic forum for you.
Dave.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic