Hi,
http://www.codeproject.com/Articles/140911/log4net-Tutorial (hit #2 for
log4net tutorial, at least for me) yields:
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
At work we use log4net and have never had any issues. One thing it's very
useful for is sending email messages when
On Sun, Mar 18, 2012 at 6:34 PM, Greg Keogh g...@mira.net wrote:
Does anyone here use log4net? I used it several years ago but found it to be
huge overkill because all I ever wanted to do was write everything to
rolling files. I eventually wrote my own lightweight ‘RollingFile’ class and
have
Does anyone here use log4net? I used it several years ago but found it to be
huge overkill because all I ever wanted to do was write everything to
rolling files. I eventually wrote my own lightweight 'RollingFile' class and
have used it for years. Now my logging needs have become a bit more
You're probably right, in my experience log4net silently fails if there is
anything wrong with the configuration. I don't have anything at hand but I have
configurations for email and database appenders, I think both in XML and code,
that I'll pass in later.
Sent from my iPod
On 18/03/2012,
I've been using NLog recently Greg. It's got a nuget package and is pretty
simple to use.
I've used log4net in the past but it was a while ago. I remember it being a
bit frustrating at times but I haven't had the same issues with NLog. I'm
sure they're all much of a muchness but it's working for
-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On
Behalf Of Ben Scott
Sent: Sunday, 18 March 2012 7:42 PM
To: ozDotNet
Subject: Re: log4net sample
You're probably right, in my experience log4net silently fails if there is
anything wrong with the configuration. I don't have anything
I have also recently started playing with log4net.
One thing that has tripped me up a couple of times now is that there needs
to be an entry in the assembyinfo.cs file. If your're using an xml config
file it needs to look like:
[assembly: log4net.Config.XmlConfigurator(ConfigFile =
Hi Greg,
Have a look at this post of mine:
http://blog.dataconversions.com.au/post/2011/04/06/Log4Net-Filter-Configuration.aspx
There is a zip file with sample app and few config options.
Check the Form1.cs file at the top, look for* [assembly:
log4net.Config.XmlConfigurator(Watch = true)]*
You
Ok, so given a WinForms app, I have a 'myapp.log4net' file (
https://gist.github.com/2070790) which gets copied to the output directory.
This file contains an AdoNetAppender and an SmtpAppender. The database
table is included in the l4n documentation I believe. Note the root tag
at the end of the
Thanks everyone for detailed replies on this, which led to find the magical
missing link to get log4net working. You need one of these:
log4net.Config.XmlConfigurator.Configure();
-or-
[assembly: log4net.Config.XmlConfigurator(ConfigFile = testapp.exe.config,
Watch = true)]
The
10 matches
Mail list logo