Chronicle is a logging abstraction library.
$> nuget install Chronicle
LogManager.SetLoggerProvider(categoryName => /* return an ILogger implementation */);
using Chronicle;
namespace MyCompany.Application.Initialization
{
public class SomeService
{
readonly ILogger _logger = LogManager.GetLogger<LoggingApplicationInitializer>();
public void DoSomething()
{
_logger.Write("Log some information.");
}
}
}
For more examples, see the documentation or browse the specifications.