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