Quantcast
Channel: What I have written I have written.
Viewing all articles
Browse latest Browse all 33

Log4net integration

$
0
0

Hi folks,
I was integarting log4net library which is amazing for logging in .net Applications.

One issue i run into worth mentioning, I got following error
“log4net:ERROR Failed to find configuration section ‘log4net’ in the application’s .config file. Check your .config file for the and elements. The configuration section should look like: <section name="log4net""

When I used following declartion , issue resolved:

private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

Regards


Filed under: ASP.net C#, Bugs, tricks

Viewing all articles
Browse latest Browse all 33

Latest Images

Trending Articles





Latest Images