Denis Avdic wrote:

> Hello,
>
> This is probably a very simple problem with a blindingly obvious
> solution but I am stumped:
>
> I am trying to use log4j in my developing environment which also relies
> on jUnit and Cactus for testing.  Now, Cactus already uses log4j for its
> own logging and I figured I can just add my own appenders and
> definitions to the current log4j.properties file.
> Ok, so i did and so my loggers instantiate correctly with the correct
> appenders attached to them (I am using an old, write-directly-to-file
> logging system I wrote, and I just checked all the appenders and params
> that my logger has...)
>
> In any case, when I do try to log NOTHING shows up in my log file (which
> has the same config as the cactus log file).  However, when I run the
> cactus test, the main function (which I suspect just runs the root
> logger) does log to the file.
>
> I am stumped, please help.  I suspect that the config file
> is not the problem....

To give a few more details:

I initialize my logger using PropertyConfigurator.
I set up a logger using Logger log = Logger.getLogger(this.class)

There is no output from my logger but there is output from cactus logger.  I
cannot make this work so a hint or two would be appreciated.

Thank you in advance,

Denis



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to