What is an application log? How is it different from Error Log? What kind of information should Application log file contain.
Are there any built in classes which I can use for that?
What is an application log? How is it different from Error Log? What kind
Share
I highly recommend log4net.
An application log records whatever you tell it to record. One big advantage is that you can choose what information to record, so you can log system state, current user, and other parameters of your choosing. The event log is not as flexible. Logging frameworks typically let you record events that happen at different levels, but it’s up to you to define what those levels mean in your code. The log level is set through configuration, so it is DEBUG on our dev system and WARN on our prod system. These are my definitions for the log4net levels: