Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 856 Bytes

README.md

File metadata and controls

23 lines (13 loc) · 856 Bytes

Log4netLogging

This is a shared library where you can use across several applications you have. It contains the following projects

  1. Caller : Contains the log4net configuration and sample code to use the logging library
  2. Logging : The shared libarary which provdes a way to log asynchronously
  3. LoggingDb : Database scripts for creating tables and stored procedures to support logging to database

In this project we are just logging few parameters like 'message','reference id','host'. You can add more properties to log just as ReferenceID.

These are steps to add an new property to log

  1. Add new column in table.(if you want to log that to database)
  2. Update stored procedure
  3. Add a new property in Interface "ILogger".
  4. Update all the appenders in web/app config file of the project in which you are using this logging library.