logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "None None" <japp...@hotmail.com>
Subject RE: SMTPAppender only for ERROR and FATAL?
Date Fri, 08 Oct 2004 19:43:31 GMT
So according to that I have to....

<appender name="email" class="org.apache.log4j.net.SMTPAppender">
	<param name="SMTPHost" value="SECORD"/>
	<param name="EvaluatorClass" value=""/>
	<param name="From" value="Application"/>
	<param name="To" value="dood@dood.com"/>
	<param name="Subject" value="Information"/>
	<layout class="org.apache.log4j.PatternLayout">
		<param name="ConversionPattern" value="%-4r %-5p [%t] %37c %3x - %m%n"/>
	</layout>
</appender>

What do I put for the value? Thanks
>From: "Scott Deboy" <sdeboy@comotivsystems.com>
>Reply-To: "Log4J Users List" <log4j-user@logging.apache.org>
>To: "Log4J Users List" <log4j-user@logging.apache.org>
>Subject: RE: SMTPAppender only for ERROR and FATAL?
>Date: Fri, 8 Oct 2004 12:27:01 -0700
>
>Javadoc here:
>http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/SMTPAppender.html
>
>If you are not providing an EvaluatorClass param you are using the default 
>evaluator.
>
>
>-----Original Message-----
>From:	None None [mailto:jappdev@hotmail.com]
>Sent:	Fri 10/8/2004 12:02 PM
>To:	log4j-user@logging.apache.org
>Cc:
>Subject:	SMTPAppender only for ERROR and FATAL?
>Am trying to set up a logger so I can send e-mails on speciffic events.
>Though it only seems an e-mail gets sent if the level is error, fatal and
>above.
>
>So I get my logger.... and call myLogger.info("bla"); I get no e-mail....
>So then I change it to myLogger.fatal("bla"); and and I get an e-mail!
>
>Below is my config file
>
><?xml version="1.0" encoding="UTF-8" ?>
><!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
>
><log4j:configuration>
>	<appender name="console" class="org.apache.log4j.ConsoleAppender">
>		<layout class="org.apache.log4j.PatternLayout">
>			<param name="ConversionPattern" value="%-4r %-5p [%t] %37c %3x - %m%n"/>
>		</layout>
>	</appender>
>	<appender name="file" class="org.apache.log4j.RollingFileAppender">
>		<param name="File" value="C:\\Programming\\logs.txt"/>
>		<param name="MaxFileSize" value="2KB"/>
>		<param name="MaxBackupIndex" value="5"/>
>		<layout class="org.apache.log4j.PatternLayout">
>			<param name="ConversionPattern" value="%-4r %-5p [%t] %37c %3x - %m%n"/>
>		</layout>
>	</appender>
>	<appender name="email" class="org.apache.log4j.net.SMTPAppender">
>		<param name="SMTPHost" value="SECORD"/>
>		<param name="From" value="Application"/>
>		<param name="To" value="dood@dood.com"/>
>		<param name="Subject" value="Information"/>
>		<layout class="org.apache.log4j.PatternLayout">
>			<param name="ConversionPattern" value="%-4r %-5p [%t] %37c %3x - %m%n"/>
>		</layout>
>	</appender>
>	<root>
>		<level value ="INFO"/>
>		<appender-ref ref="email"/>
>	</root>
>
></log4j:configuration>
>
>_________________________________________________________________
>Take charge with a pop-up guard built on patented Microsoft® SmartScreen
>Technology.
>http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
>   Start enjoying all the benefits of MSN® Premium right now and get the
>first two months FREE*.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org

_________________________________________________________________
MSN® Calendar keeps you organized and takes the effort out of scheduling 
get-togethers. 
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines

  Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message