Nonobis / Serilog.Sinks.SQLite.Net-PCL

A lightweight high performance Serilog sink that writes to SQLite database using SQLiteNetPcl (Xamarin, NetStandard 2.0 & 2.1).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serilog.Sinks.SQLite.Net-PCL

A lightweight high performance Serilog sink that writes to SQLite database using SQLiteNetPcl (Xamarin, NetStandard 2.0 & 2.1).

Perfect for stocking logs in a sqlite database in your Xamarin.Forms project :)

Getting started

Install Serilog.Sinks.SQLite.NetPCL from NuGet

Configure logger by calling WriteTo.SQLiteNetPcl()

var logger = new LoggerConfiguration()
    .WriteTo.SQLiteNetPcl(@"Logs\log.db")
    .CreateLogger();
    
logger.Information("This informational message will be written to SQLite database");

About

A lightweight high performance Serilog sink that writes to SQLite database using SQLiteNetPcl (Xamarin, NetStandard 2.0 & 2.1).

License:Apache License 2.0


Languages

Language:C# 100.0%