Hey

I would set a rolling size. But log4net not logging is strange. Are
you sure your application generates log messages? You could try to log
them to a console appender too just to make sure. In case you think
that there might be something strange going on, turning on the
internal logging can be very useful.

Cheers,
D.

2012/12/17 Rob Richardson <rdrichard...@rad-con.com>:
> Greetings!
>
> I have a very simple log file to generate rolling log files.  I want to 
> ensure that log messages are readable as soon as they are generated.  My log 
> file stayed at 0 bytes as long as my program is running, and then after the 
> program exited the log messages appeared.  Is there a setting I can use to 
> change that behavior?
>
> Here's the configuration file:
>
> <?xml version="1.0" encoding="utf-8"?>
> <log4net>
>   <appender name="RollingFile" type="log4net.Appender.RollingFileAppender">
>     <file value="CraneInterface.log" />
>     <appendToFile value="true" />
>     <maxSizeRollBackups value="90" />
>     <rollingStyle value="Size" />
>
>     <layout type="log4net.Layout.PatternLayout">
>       <conversionPattern value="%date - %message%newline" />
>     </layout>
>   </appender>
>
>   <root>
>        <level value="DEBUG" />
>       <appender-ref ref="RollingFile" />
>   </root>
>
> </log4net>
>
>
> Thank you very much.



-- 
Dominik Psenner
## OpenPGP Key Signature #################################
# Key ID: B469318C                                       #
# Fingerprint: 558641995F7EC2D251354C3A49C7E3D1B469318C  #
##########################################################

Reply via email to