NSG.Library.Logger Namespace |
A Sandcastle Documented Class Library |
The NSG.Library.Logger namespace contains classes
for defining an interface for logging and a simple implementation
of the inferface.
Classes
Class | Description | |
---|---|---|
ListLogger |
A simple implementation of ILogger
| |
Log |
Make the log a singleton and globally available.
Early in the application
Examples public void Configuration(IAppBuilder app) { ... // Globally configure logging and replace default List-Logger // with SQL-Logger. NSG.Library.Logger.Log.Logger = new WebSrv.Models.SQLLogger( ApplicationDbContext.Create(), WebSrv.Models.Constants.ApplicationLoggerName); } | |
LogData |
The Log class.
|
Interfaces
Interface | Description | |
---|---|---|
ILogger |
Interface for Logger
|
Enumerations
Enumeration | Description | |
---|---|---|
LoggingLevel |
Enum of various logging levels
Note:
[Range(typeof(byte), "0", "4", ErrorMessage = "'LogLevel' must be between 0 and 4")]
|