VOOZH about

URL: https://www.nuget.org/packages/Serilog.Sinks.PeriodicBatching/

โ‡ฑ NuGet Gallery | Serilog.Sinks.PeriodicBatching 5.0.0


๏ปฟ

๐Ÿ‘ Image
Serilog.Sinks.PeriodicBatching 5.0.0

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Serilog.Sinks.PeriodicBatching --version 5.0.0
 
 
NuGet\Install-Package Serilog.Sinks.PeriodicBatching -Version 5.0.0
 
 
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.PeriodicBatching" Version="5.0.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Serilog.Sinks.PeriodicBatching" Version="5.0.0" />
 
Directory.Packages.props
<PackageReference Include="Serilog.Sinks.PeriodicBatching" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Serilog.Sinks.PeriodicBatching --version 5.0.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Serilog.Sinks.PeriodicBatching, 5.0.0"
 
 
#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.
#:package Serilog.Sinks.PeriodicBatching@5.0.0
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Serilog.Sinks.PeriodicBatching&version=5.0.0
 
Install as a Cake Addin
#tool nuget:?package=Serilog.Sinks.PeriodicBatching&version=5.0.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Serilog.Sinks.PeriodicBatching ๐Ÿ‘ Build status
๐Ÿ‘ NuGet Version

A wrapper for Serilog sinks that asynchronously emits events in batches, useful when logging to a slow and/or remote target.

Serilog 4.x and later versions support batching natively. New projects should use Serilog's IBatchedLogEventSink and WriteTo.Sink(IBatchedLogEventSink), not this package which is now only maintained for compatibility reasons.

Getting started

Sinks that, for performance reasons, need to emit events in batches, can be implemented using PeriodicBatchingSink from this package.

First, install the package into your Sink project:

dotnet add package Serilog.Sinks.PeriodicBatching

Then, instead of implementing Serilog's ILogEventSink, implement IBatchedLogEventSink in your sink class:

class ExampleBatchedSink : IBatchedLogEventSink
{
 public async Task EmitBatchAsync(IEnumerable<LogEvent> batch)
 {
 foreach (var logEvent in batch)
 Console.WriteLine(logEvent);
 }
 
 public Task OnEmptyBatchAsync() { }
}

Finally, in your sink's configuration method, construct a PeriodicBatchingSink that wraps your batched sink:

public static class LoggerSinkExampleConfiguration
{
 public static LoggerConfiguration Example(this LoggerSinkConfiguration loggerSinkConfiguration)
 {
 var exampleSink = new ExampleBatchedSink();
 
 var batchingOptions = new PeriodicBatchingSinkOptions
 {
 BatchSizeLimit = 100,
 Period = TimeSpan.FromSeconds(2),
 EagerlyEmitFirstEvent = true,
 QueueLimit = 10000
 };
 
 var batchingSink = new PeriodicBatchingSink(exampleSink, batchingOptions);
 
 return loggerSinkConfiguration.Sink(batchingSink);
 }
}
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 is compatible.  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 is compatible.  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 net461 net461 was computed.  net462 net462 is compatible.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 is compatible.  net472 net472 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (288)

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

Package Downloads
Serilog.Sinks.Elasticsearch

Serilog sink for Elasticsearch

Serilog.Sinks.Datadog.Logs

Serilog Sink that sends log events to Datadog https://www.datadoghq.com/

Serilog.Sinks.AwsCloudWatch

A Serilog sink that logs to AWS CloudWatch

Serilog.Sinks.PostgreSQL

Serilog sink for writing to PostgreSQL table

Serilog.Sinks.MongoDB

The MongoDB sink for Serilog

GitHub repositories (15)

Showing the top 15 popular GitHub repositories that depend on Serilog.Sinks.PeriodicBatching:

Repository Stars
TechnitiumSoftware/DnsServer
Technitium DNS Server
dotnetcore/DotnetSpider
DotnetSpider, a .NET standard web crawling library. It is lightweight, efficient and fast high-level web crawling & scraping framework
chocolatey/ChocolateyGUI
A delicious GUI for Chocolatey
smartstore/Smartstore
A modular, scalable and ultra-fast open-source all-in-one eCommerce platform built on ASP.NET Core 10
serilog-contrib/serilog-sinks-elasticsearch
A Serilog sink that writes events to Elasticsearch
trimble-oss/dba-dash
DBA Dash - SQL Server Monitoring Tool
porrey/Virtual-ZPL-Printer
An ethernet based virtual Zebra Label Printer that can be used to test applications that produce bar code labels.
babaktaremi/Clean-Architecture-Template
๐Ÿงน Ready to develop template based on clean architecture principles. Supports ASP NET Core Identity integrated with JWE tokens, OTP authentication, stand alone plugin development, CQRS pattern using MediatR library and dynamic permission management system out of the box
alaatm/Sejil
Capture, view and filter your ASP.net core log events right from your app
serilog-tracing/serilog-tracing
A minimal tracing system that integrates Serilog with System.Diagnostics.Activity.
ubiety/xmpp
An XMPP library written for .Net in C#.
DevBetterCom/DevBetterWeb
A simple web application for devBetter
johnstaveley/SecurityEssentials
Raise your baseline in security by using this as your template instead of default Mvc project. Keep your app secure by continuously applying Security rules
NimbusAPI/Nimbus
Nimbus is a .NET client library to provide an easy abstraction over common messaging frameworks.
ChangemakerStudios/serilog-sinks-mongodb
A sink for Serilog that writes events to MongoDB
Version Downloads Last Updated
5.0.1-dev-00860 27,388 7/2/2024
5.0.0 14,230,730 6/5/2024
5.0.0-dev-00855 496 6/5/2024
4.1.2-dev-00851 977 5/30/2024
4.1.1 880,856 5/28/2024
4.1.1-dev-00845 645 5/22/2024
4.1.0 3,726,715 5/3/2024
4.1.0-dev-00840 7,252 5/1/2024
4.0.2-dev-00838 482 5/1/2024
4.0.1 2,587,141 3/15/2024
4.0.1-dev-00832 599 3/14/2024
4.0.0 20,030,952 2/22/2024
4.0.0-dev-00824 3,513 2/2/2024
4.0.0-dev-00821 59,667 1/1/2024
3.1.1-dev-00804 14,849 4/15/2023
3.1.1-dev-00801 10,784 9/27/2022
3.1.0 91,670,297 9/27/2022
3.1.0-dev-00796 2,220 9/15/2022
3.0.0 14,624,675 9/13/2022
3.0.0-dev-00792 1,819 9/12/2022
Loading failed