This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes log messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "log messages" Watch "log messages" New topic

log messages

Ann Kanu
Ranch Hand

Joined: Feb 01, 2004
Posts: 30
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.
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

I'll move this to the Weblogic forum for you.
wood burning stoves
subject: log messages
It's not a secret anymore!