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. e.g. log.debug("**** Entering "+obj.getClass().getName()+" "+message+" ****"); // // log.debug("**** Exiting "+obj.getClass().getName()+" "+message+" ****");
In my log4j.properties 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 log4j.properties 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 log4j.properties