Hi jboss community:
I have a question regarding the implementation/usage of log4j in an application deployed under jboss. I have been lurking on the forum and I did find a lot of stuff relating to log4j and jboss, but, I may have missed the part where it explains the usage.
So, I need your help again.
So far, I have done the following:
1) Modified /server/default/conf/log4j.xml and added a file appender "MyLogger" and directed the location of the file to mylog.txt.
2) I have also modified the log4j.xml and the necessary appender-ref entry.
Having done that, I have added the following to my application code.
myAppLogger = org.apache.log4j.Logger.getLogger(myAppMgr.class.getName())
and I do not configure the properties at all.
The result of doing the above is that the output is still going to server.log as opposed to mylog.txt as defined in the log4j.xml.
What am I doing wrong?
I appreciate your help very much.
Never mind, jboss experts ....
It's working like a charm and everything is fine.
I must have mistyped something in the category or something in the log4j.