A Serilog sink that writes events as documents to LiteDB.
Package - Serilog.Sinks.LiteDB | Platforms - .NET 4.5
In the example shown, the sink will write to the database logs
. The default collection name is log
, but a custom collection can be supplied with the optional CollectionName
parameter. The database and collection will be created if they do not exist.
// basic usage defaults to writing to `log` collection var log = new LoggerConfiguration() .WriteTo.LiteDB(@"c:\tmp\logs.db") .CreateLogger(); // creates custom collection `applog` var log = new LoggerConfiguration() .WriteTo.LiteDB(@"c:\tmp\logs.db", collectionName: "applog") .CreateLogger();
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4