You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by ramakrishna arni <rk...@hotmail.com> on 2003/02/07 19:40:16 UTC

Question on SMTPAppender

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: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org