hi matthew!
yes. in my Global.asax.cs i called:
protected
void Application_Start(Object sender, EventArgs e){
log4net.Config.XmlConfigurator.Configure();
}
greets
wolfgang
Von: Matthew Brown [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 22. November 2005 14:49
An: Log4NET User
Betreff: Re: web.config problem
Do you have a call to XmlConfigurator?
On 11/22/05, Wagner,
Wolfgang (LfF-R) <[EMAIL PROTECTED]
> wrote:
hi all!
i have a problem configuring the log4net rollingfileappender. my
application is structured as followed:
web_root
+-application main
+-bin
+-main
+- log.txt
+- ..... (all the other files)
Web.config
here is my Web.config:
<?xml version=" 1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<log4net>
<appender name="RollingFile"
type="log4net.Appender.RollingFileAppender">
<param name="File" value="main\log.txt" />
<param name="AppendToFile" value="true" />
<param name="MaxSizeRollBackups" value="5" />
<param name="MaximumFileSize" value="100KB" />
<param name="RollingStyle" value="Size" />
<param name="StaticLogFileName" value="true" />
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern"
value="%date %level - %message%newline" />
</layout>
</appender>
<root>
<level value="INFO" />
<appender-ref ref="RollingFile" />
</root>
</log4net>
<appSettings>
....
</configuration>
the problem ist that the log.txt has 0 bytes, even if i try to log into
it. but the application runs perfect (except the logging).
does anyone know whats the problem??
greets
wolfgang