logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Bodewig (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (LOG4NET-144) Attempted to append to closed appender named <appenderName>.
Date Tue, 06 Sep 2011 08:30:10 GMT

     [ https://issues.apache.org/jira/browse/LOG4NET-144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Stefan Bodewig closed LOG4NET-144.
----------------------------------

    Resolution: Cannot Reproduce

follwoing up on Ron's threat made three years ago ;-)

> Attempted to append to closed appender named <appenderName>.
> ------------------------------------------------------------
>
>                 Key: LOG4NET-144
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-144
>             Project: Log4net
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 1.2.10
>         Environment: .net 2.0, WinXP, VS2005
>            Reporter: Andreas Aigner
>            Priority: Minor
>         Attachments: log4net.config
>
>
> using following conifg-file:
> <?xml version="1.0" encoding="utf-8" ?>
> <!-- 
> 		.log4net configuration file	
> -->
> <configuration>
>   <!-- This section contains the log4net configuration settings -->
>    <log4net debug="true">
>     <!-- Define some output appenders -->
>     <appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
>       <layout type="log4net.Layout.PatternLayout">
>         <conversionPattern value="%date [%thread] %-5level %logger [%property{Auftrag}]
- %message%newline" />
>       </layout>
>     </appender>
>     <appender name="BufferingForwardingAppender" type="log4net.Appender.BufferingForwardingAppender"
>
>       <filter type="log4net.Filter.LevelRangeFilter">
>         <levelMin value="INFO" />
>         <levelMax value="FATAL" />
>       </filter>
>       <bufferSize value="5"/>
>       <appender-ref ref="ConsoleAppender" />
>     </appender>
>     <!-- Setup the logger category, add the appenders and set the default priority
-->
>     <logger name="testLogger1">
>       <additivity value="false" />
>       <level value="DEBUG" />
>       <appender-ref ref="BufferingForwardingAppender" />
>     </logger>
>    <logger name="testLogger2">
>       <additivity value="false" />
>       <level value="INFO" />
>       <appender-ref ref="BufferingForwardingAppender" />
>     </logger>
>   </log4net>
> </configuration>
> all messages from testlogger1 and testLogger2 appear on the Console.
> After deleting this section:
>   <logger name="testLogger2">
>       <additivity value="false" />
>       <level value="INFO" />
>       <appender-ref ref="BufferingForwardingAppender" />
>     </logger>
> this ErrorCode appear on the console:
> log4net:ERROR [BufferingForwardingAppender] Attempted to append to closed appender named
[BufferingForwardingAppender].

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message