I have this simple xml configuration that unable me to print logs to console and (supposed) to print it also to file, when I try to work with this from witin eclipse I manage only to print to console but not file , why ? by the way its working fine under tomcat without eclipse.
I read the first few lines of the post and immediately thought "Used a relative file path and doesn't know what Websphere's working directory is." And that's exactly the problem. It would be better to use an absolute file path to specify the file that log4j should write to.
try adding priority ...one more thing i noticed is log4j might not be able to get as in what location are you expecting the log file to be created. I think some where it might be creating the file.You search the dir of instalattion of App server.