Serilog.Sinks.SQLite 5.0.0-dev-00086

.NET Standard 2.0 .NET Framework 4.5.2
This is a prerelease version of Serilog.Sinks.SQLite.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Serilog.Sinks.SQLite --version 5.0.0-dev-00086
NuGet\Install-Package Serilog.Sinks.SQLite -Version 5.0.0-dev-00086
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Serilog.Sinks.SQLite" Version="5.0.0-dev-00086" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Serilog.Sinks.SQLite --version 5.0.0-dev-00086
#r "nuget: Serilog.Sinks.SQLite, 5.0.0-dev-00086"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Serilog.Sinks.SQLite as a Cake Addin
#addin nuget:?package=Serilog.Sinks.SQLite&version=5.0.0-dev-00086&prerelease

// Install Serilog.Sinks.SQLite as a Cake Tool
#tool nuget:?package=Serilog.Sinks.SQLite&version=5.0.0-dev-00086&prerelease


A lightweight high performance Serilog sink that writes to SQLite database.

Getting started

Install Serilog.Sinks.SQLite from NuGet

Install-Package Serilog.Sinks.SQLite

Configure logger by calling WriteTo.SQLite()

var logger = new LoggerConfiguration()
logger.Information("This informational message will be written to SQLite database");

XML <appSettings> configuration

To use the SQLite sink with the Serilog.Settings.AppSettings package, first install that package if you haven't already done so:

Install-Package Serilog.Settings.AppSettings

In your code, call ReadFrom.AppSettings()

var logger = new LoggerConfiguration()

In your application's App.config or Web.config file, specify the SQLite sink assembly and required sqliteDbPath under the <appSettings> node:

    <add key="serilog:using:SQLite" value="Serilog.Sinks.SQLite"/>
    <add key="serilog:write-to:SQLite.sqliteDbPath" value="Logs\log.db"/>
    <add key="serilog:write-to:SQLite.tableName" value="Logs"/>
    <add key="serilog:write-to:SQLite.storeTimestampInUtc" value="true"/>


SQLite sink automatically buffers log internally and flush to SQLite database in batches on dedicated thread.

Build status

Many thanks to the <img src="resources/jetbrains.svg" width="100px"/> for donating awesome suite of tools making this project possible.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net452 net46 net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Serilog.Sinks.SQLite:

Package Downloads

devon4net Logger library


Plugga.Core lets you quickly create modular ASP .Net Core applications searching, loading and configuring any "pluggable" component. Pluggable components are a little set of commonly used objects as Controllers, DbContexts, Razor Pages, SignalR Hubs, HostedServices, static assets and, of course, your own component objects.



GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Serilog.Sinks.SQLite:

Repository Stars
Effortless Microservice Design and Integration. This repository includes the code-base for the Warewolf Studio and Server.
Version Downloads Last updated
5.5.0 20,170 7/1/2022
5.0.0 107,634 11/26/2019
5.0.0-dev-00086 1,154 5/31/2019
5.0.0-dev-00082 744 3/18/2019
4.5.0 39,510 1/2/2019
4.0.0 8,697 7/3/2018
3.9.1 1,042 5/31/2018
3.9.0 1,351 1/18/2018
3.8.3 20,866 4/12/2017
3.8.1 970 4/5/2017
3.8.0 1,005 2/5/2017
3.7.4 970 11/26/2016
3.6.5 1,121 10/21/2016
3.5.8 947 10/4/2016
3.5.3 965 9/24/2016
3.0.2 1,307 9/19/2016
2.0.1 1,179 9/18/2016
1.1.16 1,275 9/17/2016
1.1.15 1,226 9/17/2016
1.1.14 1,227 9/17/2016
1.1.13 1,224 9/17/2016