Hi All,
I am new to log4net. I would to integrate this dll into my application. So I
have done the following steps:
1. I have added log4net dll into my application.
2. Then insert this code
protected static readonly ILog objLog = LogManager.GetLogger(
System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
private showLog()
{
if (objLog.IsDebugEnabled) objLog.Error("While
save");
}
I hope these are the only steps to integrate log4net into application. But
on load I get IsDebugEnabled FALSE.
So it is difficult to write log.
Please help me!!
Thanks in advance
Regards,
Milind Lad.