aspose file tools*
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
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "log messages" Watch "log messages" New topic
Author

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.
Thanks
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

I'll move this to the Weblogic forum for you.
Dave.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: log messages