A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.nuget.org/packages/Serilog.Sinks.SQLite/5.0.0-dev-00086 below:

NuGet Gallery | Serilog.Sinks.SQLite 5.0.0-dev-00086



Serilog.Sinks.SQLite

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()
    .WriteTo.SQLite(@"Logs\log.db")
    .CreateLogger();
    
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()
    .ReadFrom.AppSettings()
    .CreateLogger();

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

<appSettings>
    <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"/>
</appSettings>    
Performance

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

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

Product Versions Compatible and additional computed target framework versions. .NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 was computed.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 was computed.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed.  .NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 was computed.  .NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 was computed.  .NET Framework net452 net452 is compatible.  net46 net46 was computed.  net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 is compatible.  net48 net48 was computed.  net481 net481 was computed.  MonoAndroid monoandroid monoandroid was computed.  MonoMac monomac monomac was computed.  MonoTouch monotouch monotouch was computed.  Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed.  Xamarin.iOS xamarinios xamarinios was computed.  Xamarin.Mac xamarinmac xamarinmac was computed.  Xamarin.TVOS xamarintvos xamarintvos was computed.  Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed.  NuGet packages (9)

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

Package Downloads Devon4Net.Infrastructure.Logger

devon4net logger library

28.2K Afx.Zb.Common

常用公共类库

23.1K Plugga.Core

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.

5.3K QCommon.SeriLog

支持SEQ

4.1K AspNetCoreMicroserviceInitializer.TradingDesk

This library provides the inventory for AspNetCoreMicroserviceInitializer.Registrations. This library contains: - Attributes. - Enums. - Exceptions. - HangfireFilters. - Helpers. - Interfaces. - Migration services. - Settings. The most up-to-date documentation on GitHub Wiki: https://github.com/qpashkaaa/Asp-Net-Core-Microservice-Initializer/wiki.

1.4K GitHub repositories (4)

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

Repository Stars lanedirt/AliasVault

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

1.3K Warewolf-ESB/Warewolf

Effortless Microservice Design and Integration. This repository includes the code-base for the Warewolf Studio and Server.

276 Corsinvest/cv4pve-admin

Corsinvest for Proxmox VE Web Admin Clusters - vCenter but for Proxmoxm VE

274 serilog-contrib/serilog-ui

Simple Serilog log viewer UI for several sinks.

251 Version Downloads Last Updated 6.0.0 143,442 5/1/2023 5.5.0 113,345 7/1/2022 5.0.0 171,883 11/26/2019 5.0.0-dev-00086 1,333 5/31/2019 5.0.0-dev-00082 896 3/18/2019 4.5.0 59,191 1/2/2019 4.0.0 12,014 7/3/2018 3.9.1 1,480 5/31/2018 3.9.0 1,821 1/18/2018 3.8.3 22,692 4/12/2017 3.8.1 1,326 4/5/2017 3.8.0 1,357 2/5/2017 3.7.4 1,313 11/26/2016 3.6.5 1,587 10/21/2016 3.5.8 1,283 10/4/2016 3.5.3 1,328 9/24/2016 3.0.2 1,723 9/19/2016 2.0.1 1,776 9/18/2016 1.1.16 1,656 9/17/2016 1.1.15 1,571 9/17/2016 1.1.14 1,783 9/17/2016 1.1.13 1,779 9/17/2016

serilog logging SQLite

Copyright © Zethian Inc. 2013-2019


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