|
Joutsen Logging v0.5.0+22-gec3d058
|
Joutsen Logging is a simple framework for the DotNet Core framework that allows to create log output in different formats. It is modular and extensible. Loggers can easily be configured in Json or XML files and used to write to different targets. At the same time it is possible to restrict the output through filters and create different output formats. If desired the scope of a log entry (e.g. a class) can also be considered.
Simply download the latest assemblies and add them to your project or build them yourself by cloning the repository and build the solution using the dotnet build command.
In order to use the logger in your project simply create a logger instance and add the desired filter and handlers like this:
Another way to create a logger is by creating a config file that defines the logger, filter, handlers and formatters like this:
The easiest way to retrive the logger from the config file is then to use the Dependency Injection Framework:
Once the logger is created call the methods on the instance to create entries.
For a type scoped logger it is also possible to use generics to get the scoped logger.
See the API documentation for further details.
Development documentation can be found here.
API documentation in HTML is available here.
Tests can be run using NUnit by using the projects in the test folder. For unit test simply run
Build and tests are also automatically run on the Jenkins CI server at https://ci.norsecorby.de/.