Skip to main content

Posts

Showing posts with the label Log4Net

Introduction to Log4Net

Log4net Log4net ( http://logging.apache.org/log4net/ ) is a tool to help the programmer output log statements to a variety of output targets, i have used it handling all the logging requirements of the applications that i have developed recently. And have found it integrates very well with spring.net and NHibernate. In most cases i have set up the apps to log everything to a file and also log errors/warnings to an SMTP logger (which effectively sends an email out to me). There are loads of examples and manuals etc on the website http://logging.apache.org/log4net/ it gives loads of good config examples too. In order to get log4net working all you need is the log4net dll, configuration, and a small amount of code to get it started and logging. (this page is a good read http://logging.apache.org/log4net/release/manual/configuration.html ) But the minimum to take away is: 1. Reference the log4net dll 2. Import the log4net classes 2.1. using log4net; 2.2. using log4net.Config; 3. Add ...

Facebook

Facebook Recommendations

Followers


Web Designing In Karachi



Haroof.com


Politics blogs

My Zimbio

Email Subscribe

Enter your email address:

Watch online Live TV

Labels

Show more