Friday, December 31, 2010

Happy New Year-2011


Hi

Wishing you & your family members a very joyful & prosperous New Year.

Have a great year a head

"We will open the book. Its pages are blank. We are going to put words on them ourselves. The book is called “Opportunity” and its first chapter is New Year’s Day. "
-Edith L. Pierce


By the year end the buzz will be Coming New year & its resolutions

These are the some of my new year resolutions. (2011)

--Read one technical book per every quarter.

--Learn one new language (programming language) per year.

--Want to post regularly in my blog.

--Invest Regularly.
(An investment in knowledge always pays the best interest --Benjamin Franklin)

--Manage Risk
(The greatest risk is the risk of risk less living --Stephen Covey)

Logging Tool (Log4net)

LOGGING
It is an important component of the development cycle. It is the process of recording information with automated program. It is used to understand the activity of the application & to diagnose problems.

Features
- It provides precise context about the execution of the application.
- Once inserted into the code, the generation of logging output requires no human intervention.
- Log output can be saved in persistent medium to be studied at a later time.

Log4net

Its an open source library that allows .NET applications to output log statements to a variety of output targets such as to a file,the console, the database or even e.mail.
It allows the developer to control which log statements are output with arbitrary granularity. It is fully configurable at run time using external configuration files.

Features:

- log4net is optimized for speed.
- log4net is based on a named logger hierarchy.
- log4net is fail-stop but not reliable.
- log4net is thread-safe.
- log4net is not restricted to a predefined set of facilities.
- Logging behavior can be set at run time using a configuration file. Configuration files are in XML format.
- log4net is designed to handle exceptions from the start.
- log4net categorizes logging into levels: DEBUG, INFO, WARN, ERROR and FATAL.
- The format of the log output can be easily changed by implementing a new layout class.
- The target of the log output as well as the writing strategy can be altered by writing a new appender class.
- log4net supports multiple output appenders per logger.

Log4net can be downloaded from here. Log4net Download


Log4net is from the The Apache Software Foundation
Note:It can slow down the application.

Other Logging frameworks are
- log4j for Java
- log4cxx for C++
- log4php for PHP