Hi,

We have written a wrapper on top of log4j and created our own set of log levels. I have the following configuration fragment for a logger:

<logger name="GeneralLogger">
<level value="SEVERITY5" class="ServiceLevels"/>
<appender-ref ref="EmailAppender"/>
<appender-ref ref="GeneralAppender"/>
<appender-ref ref="HTMLAppender"/>
</logger>

I wrote a test client that gets this logger and requests for logging a message of severity greater than "SEVERITY5", which is the base level for this logger. I notice that GeneralAppender (which writes to a flat text file) and HTMLAppender (which writes to a HTML file) work perfectly fine whereas the EmailAppender (which is of type SMTPAppender) does not send a mail. I know for sure that the configuration of the EmailAppender is correct because, when I do not use our wrapper, it sends out emails correctly.

I have tested our wrapper with different levels of severity of messages and it works fine. I do not know if SMTPAppender has any problem or issues when dealing with custom wrappers to log4j.

Any help is appreciated.

TIA.

Arni


_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail


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

Reply via email to