my dog learned polymorphism
The moose likes Websphere and the fly likes Log file not created.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Log file not created...." Watch "Log file not created...." New topic

Log file not created....

Ketan Mohite
Ranch Hand

Joined: Feb 14, 2006
Posts: 45
Hi all,

I have a web application which uses Websphere as a web server.
I am trying to log each method in my code for their entering and exiting information.
log.debug("**** Entering "+obj.getClass().getName()+" "+message+" ****");
log.debug("**** Exiting "+obj.getClass().getName()+" "+message+" ****");

In my file,I have set the default file for log as :


It works fine on my Test Server, on which I test my code.
But, on Live server this Log information is getting stored in Server's default Log directory which is configured in Websphere, whereas the log file name given in the is not generated only.

Can anyone please suggest, what actually making it to create log in server's default log instead of the file that is mentioned in the

Thanks & Regards,
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Could it be that WebSphere uses log4j internally, and that it gets its configuration information from some other place?

Since this looks like its more about WebSphere than log4j, I'm moving the thread to our WebSphere forum.
Ketan Mohite
Ranch Hand

Joined: Feb 14, 2006
Posts: 45
Sorry to trouble you friends,

It was a silly mistake from my side.
Instead of checking in the actual Java file,I was trying to compare the properties files on Live and Test Server.

In the Java file on Live Server,the instead of using log.debug, System.out.println was used which was logging the info in Default_Server_std_out file which is log file for the web server.

Thanks & Regards,
I agree. Here's the link:
subject: Log file not created....
It's not a secret anymore!