https://github.com/simplify9/logger
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.
https://github.com/simplify9/logger
Last synced: 10 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/simplify9/logger
- Owner: simplify9
- License: mit
- Created: 2020-07-13T10:07:56.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-07-08T20:21:42.000Z (11 months ago)
- Last Synced: 2025-08-01T00:46:31.830Z (10 months ago)
- Language: C#
- Homepage:
- Size: 697 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
[](https://dev.azure.com/simplify9/Github%20Pipelines/_build/latest?definitionId=168&branchName=master)

| **Package** | **Version** |
| :----------------:|:----------------------:|
|[```SimplyWorks.Logger```](https://www.nuget.org/packages/SimplyWorks.Logger/)| 
## Introduction
*Logger* is a library extension method that documents any events or incidents onto an [Elasticsearch](https://www.elastic.co/blog/found-elasticsearch-as-nosql) database. With *Logger*, the backend logs every event that occurs, and saves it.
## Getting Started
*Logger* is available as a package on [NuGet](https://www.nuget.org/packages/SimplyWorks.Logger/).
To use *Logger*, you will require the [`SeriLog`](https://serilog.net) library.
## Setting Up *Logger*
```csharp
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();
})
.UseSwLogger();
}
```
## Getting support 👷
If you encounter any bugs, don't hesitate to submit an [issue](https://github.com/simplify9/Logger/issues). We'll get back to you promptly!