English 中文(简体)
全额记录
原标题:Log4net event log full
  • 时间:2011-01-28 08:34:46
  •  标签:
  • log4net

I am using log4net event log appender to log to event viewer and after I am getting the following exception:

Unable to write to event log using source source name Win32exception event log is full.

    <appender name="EventLogAppender" type="log4net.Appender.EventLogAppender">
          <filter type="log4net.Filter.LevelRangeFilter">
            <param name="LevelMin" value="ERROR"/>
            <param name="LevelMax" value="ERROR"/>
          </filter>
          <!--The name of the application-->
          <applicationName value="eventsource"/>
          <layout type="log4net.Layout.PatternLayout">
            <conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline"/>
          </layout>
    </appender>

Could you please let me know what will be the workaround for this? Thanks, Ajai

问题回答

权利点击事件名称,戈至特性.......check 适当选择“达到最大事件记录规模......

错误应当足够清楚,你的活动记录是完整的,因此,你会这样做。

或增加您的活动记录,或删除/清理旧事件,

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/fn_fulllog.mspx?mfr=true”rel=“nofollow”http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/fn_fulllog.mspx?mfr=true 和





相关问题
Log4Net and extra fields

Is it possible to insert extra fields into the database and use them in log4net? I have a UserId I would like to have in an extra field in the log-table. I have added the field in the log4net.config:...

log4net with .NET 4.0

I ve thrown together some code to tinker with the new .Net 4.0/VS 2010 pieces, but I can t seem to find a build of my logging framework of choice (log4net) for 4.0, and I m getting reference errors ...

Best logging approach for composite app?

I am creating a Composite WPF (Prism) app with several different projects (Shell, modules, and so on). I am getting ready to implement logging, using Log4Net. It seems there are two ways to set up the ...

log4net log files disappear when service restarted

We are using log4net to create our logfiles from Windows services, and we are using the RollingFileAppender rolling based on date. The version of log4net we are using is 1.2.9. Now for the issue. ...

How do I use a date pattern in a header/footer?

Here s my appender configuration from my app.config. This just prints out the literal string instead of translating it to the date (i.e., it literally prints "[START: %date{MM/dd/yy HH:mm} ]"). <...

热门标签