log4net

Delete Log Files That Are Older Than 6 Months

I'm using NLog in most of the web applications that I built. This library generates files with extension ".log" where the exceptions and tracing logs are stored.  After, few months to years, I noticed that few applications reached a large number of log files generated over the time and this is totally normal especially if we are tracing major events in the application. The files are consuming some good space of the hard disk. Therefore, there is a need to delete old files and cleanup the hard d…

Configure log4net logging framework for ASP.NET MVC

This post will provide a short overview of the steps needed to integrate the  Apache log4net  logging framework to an ASP.NET MVC Web application: Include the log4net in your MVC project, you can use the  NuGet  package manager (Alternatively, you can also download and add the  log4net.dll  reference manually): PM> install-package Log4Net Add the following tags to the MVC  Web.config  file: < configuration > < configSections > [...] < section name = "log4net&…

Load More
That is All