using LOG4NET
Hi to all,
I want to use log4net but i can't make it work.
This is how i use it:
in the web.config:
-----
-----
in the page load:
---
private static readonly log4net.ILog log = log4net.LogManager.GetLogger(typeof(LoginForm));
private void Page_Load(object sender, System.EventArgs e)
{
if(log.IsDebugEnabled)
log.Debug("Did it again!");
-----
I m using log4net 1.1.1
i also have log4net-1.2.0-beta8
but i couldnt make them work.
I had problems with log4net-1.2.0-beta8 because it wasn't reading that DEBUG is enabled, so i switched to 1.1.1 - where logger was reading that DEBUG is enabled but when it camed to writing to file nothing
Anyone have some idea or something?
Thanks in advance
Replies
Know the answer? Post it — somebody with the same question will find it here.