Ok, so now I have the logging.config file
<?xml version="1.0" encoding="utf-8" ?>
<appender name="RollingFile"
type="log4net.Appender.RollingFileAppender">
<file value="di.log" />
<appendToFile value="true" />
<maximumFileSize value="100KB" />
<maxSizeRollBackups value="2" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%level %thread %logger - %message
%newline" />
</layout>
</appender>
<root>
<level value="DEBUG" />
<appender-ref ref="RollingFile" />
</root>
The logging.config is set to copy always. No attribute in
AssemblyInfo, and nothing in my App.config.
Still no luck.
On May 20, 2:52 pm, Colin Ramsay <
colinram...@gmail.com> wrote:
> And actually, looking at your links, the coderant one says "3. Add the
> log4net config file to the root of the web application:" and the one from
> the castle list specifies a config file in the facility configuration
> ("<facility id="loggingfacility"
> configFile="RSS.KM.DataAccess.Tests.dll.config"")... I think if you omit the
> configFile attribute then it just uses logging.config.
>
> On Wed, May 20, 2009 at 8:49 PM, Colin Ramsay <
colinram...@gmail.com> wrote:
> > I always have the config in logging.config in my application root, rather
> > than in the app/web.config, I think that's a logging facility thing. You can
> > actually enable log4net internal debugging to find out what's going on in
> > there. Take a look at "How do I enable log4net internal debugging?" in
> >
http://logging.apache.org/log4net/release/faq.html
>
> > On Wed, May 20, 2009 at 8:20 PM, George Mauer <
gma...@gmail.com> wrote:
>
> >> I have never used log4net before nor the windsor logging facility, I
> >> have gotten the logging facility to work with the console logger and
> >> now am trying to set it up with log4net and hitting a roadblock.
> >> Going off the information in this article:
>
> >>
http://mikehadlow.blogspot.com/2008/06/more-windsor-love-using-log4ne...
> >> and this earlier post:
> >>
http://groups.google.com/group/castle-project-users/browse_thread/thr...