Package | Version |
---|---|
SimplyWorks.Logger |
Logger is a library extension method that documents any events or incidents onto an Elasticsearch database. With Logger, the backend logs every event that occurs, and saves it.
Logger is available as a package on NuGet.
To use Logger, you will require the SeriLog
library.
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDfaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
})
.UseSwLogger();
}
If you encounter any bugs, don't hesitate to submit an issue. We'll get back to you promptly!