1 Reply Latest reply on Nov 15, 2003 7:12 AM by Gopalakrishnan

    log4j and jboss

    Gopalakrishnan Newbie

      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.

      -- Gopal