Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 95031 invoked from network); 22 Feb 2008 17:36:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Feb 2008 17:36:41 -0000 Received: (qmail 82091 invoked by uid 500); 22 Feb 2008 17:36:35 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 82062 invoked by uid 500); 22 Feb 2008 17:36:34 -0000 Mailing-List: contact log4net-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET User" List-Id: Delivered-To: mailing list log4net-user@logging.apache.org Received: (qmail 82051 invoked by uid 99); 22 Feb 2008 17:36:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2008 09:36:34 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ironworld@gmail.com designates 209.85.198.188 as permitted sender) Received: from [209.85.198.188] (HELO rv-out-0910.google.com) (209.85.198.188) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2008 17:36:01 +0000 Received: by rv-out-0910.google.com with SMTP id c27so370641rvf.10 for ; Fri, 22 Feb 2008 09:36:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=zMkbb92R95H62+ZdXqganV5rlrz+jTXTP7rsBDgw/H8=; b=q0Y40NNkOLlamHycwITnQlHHL9xMT2ROg264aiEAhMYy7xUoDX4Ay6mqNlB3n7qbxOu2Qw8sxzIiBu3k6A+sIGY6LtDmiCoUXnioxYqm+AohSJpHn5zsa/qw5s+VcS99dTcDw746lfsq+8iJ9N3RuSyP86zg3YIDMqPQYwwN1XI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=lOxVlFS2HHSMeVt/T2KNAwYtn9Lh+bibU0CqOsxHtJhcfr1ZY2DZDPE3yc4299QRtla3LMEpowjTGhXoa/aRcfn1+JeAhoLsnLbY7B9r6MPBGkno7AxTgdzhR4Asp6QMawOPoXuovqbcT1tgHbHPpw5hprezwZKMlXBnnWyhGfk= Received: by 10.141.26.18 with SMTP id d18mr144693rvj.264.1203701769882; Fri, 22 Feb 2008 09:36:09 -0800 (PST) Received: by 10.140.135.18 with HTTP; Fri, 22 Feb 2008 09:36:09 -0800 (PST) Message-ID: Date: Fri, 22 Feb 2008 14:36:09 -0300 From: "=?ISO-8859-1?Q?C=EDcero_Raupp_Rolim?=" To: log4net-user@logging.apache.org Subject: Problem CF + RollingFileAppender + Flush MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1417_27740888.1203701769870" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_1417_27740888.1203701769870 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! 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: 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. ------=_Part_1417_27740888.1203701769870 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi!

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" ?>
<configuration>
  <log4net>
    <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
      <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" />
      </layout>
    </appender>
    <root>
      <level value="ALL" />
      <appender-ref ref="RollingFileAppender" />
    </root>
  </log4net>
</configuration>

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.
------=_Part_1417_27740888.1203701769870--