logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "CĂ­cero Raupp Rolim" <ironwo...@gmail.com>
Subject Problem CF + RollingFileAppender + Flush
Date Fri, 22 Feb 2008 17:36:09 GMT

We are developing an application for compact .NET framework 2.0. We need log
events and view and real time. We configured the app.config file like
presented below:

<?xml version="1.0" encoding="utf-8" ?>
    <appender name="RollingFileAppender" type="
      <file value="test.txt" />
      <appendToFile value="true" />
      <maxSizeRollBackups value="5" />
      <maximumFileSize value="100KB" />
      <rollingStyle value="Size" />
      <staticLogFileName value="true" />
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%date [%thread] %-5level %logger [%ndc] -
%message%newline" />
      <level value="ALL" />
      <appender-ref ref="RollingFileAppender" />

After log some events, the file "test.txt" continues with 0 size. We need
execute method LogManager.Shutdown() to save file with these events. Are
there one way to log events in real time without execute LogManager.Shutdown

Thank's! Sorry for my poor English.

View raw message