Return-Path: X-Original-To: apmail-logging-log4net-dev-archive@www.apache.org Delivered-To: apmail-logging-log4net-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 06ED410A67 for ; Tue, 22 Oct 2013 17:10:46 +0000 (UTC) Received: (qmail 95183 invoked by uid 500); 22 Oct 2013 17:10:45 -0000 Delivered-To: apmail-logging-log4net-dev-archive@logging.apache.org Received: (qmail 95050 invoked by uid 500); 22 Oct 2013 17:10:44 -0000 Mailing-List: contact log4net-dev-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET Dev" List-Id: Delivered-To: mailing list log4net-dev@logging.apache.org Received: (qmail 95006 invoked by uid 99); 22 Oct 2013 17:10:43 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Oct 2013 17:10:43 +0000 Date: Tue, 22 Oct 2013 17:10:43 +0000 (UTC) From: "Dominik Psenner (JIRA)" To: log4net-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4NET-402) SMTP Appender keeps sending me emails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LOG4NET-402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13802019#comment-13802019 ] Dominik Psenner commented on LOG4NET-402: ----------------------------------------- Maybe you can solve this by filtering the events in the appender: http://logging.apache.org/log4net/release/manual/configuration.html#filters Please close the issue if that's the solution to your problem. > SMTP Appender keeps sending me emails > ------------------------------------- > > Key: LOG4NET-402 > URL: https://issues.apache.org/jira/browse/LOG4NET-402 > Project: Log4net > Issue Type: Bug > Components: Appenders, Examples > Affects Versions: 1.2.11 > Environment: Windows Server 2012 > IIS 7 > .Net 4 (ASP.Net) c# > Reporter: Darion Mapp > Priority: Minor > > I want to receive an email from the system when a log level of ERROR or above occurs and i want to get the last 50 events of any level sent including the error event. for the life of me I can't figure out how to stop log4NET from sending me a email every 5 minutes with the past 50 events none of which is an error (errors are rear). > > > >
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > private static readonly ILog Logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); > public ComplexWorkWcfService() > { > if (!log4net.LogManager.GetRepository().Configured) > { > var log4netpath = System.Web.Hosting.HostingEnvironment.MapPath("~/Log4net.config"); > if (log4netpath == null) > log4netpath = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "Log4net.config"); > log4net.Config.XmlConfigurator.ConfigureAndWatch(new System.IO.FileInfo(log4netpath)); > Logger.Debug(string.Format("logging configured.")); > } > } > log4net version = 1.2.11.0 -- This message was sent by Atlassian JIRA (v6.1#6144)