Table of Contents

Class RealmDBExtension

Namespace
Serilog
Assembly
Arc4u.Diagnostics.Serilog.Sinks.RealmDb.dll

Extension methods to add the Realm log sink to a Serilog configuration.

public static class RealmDBExtension
Inheritance
RealmDBExtension
Inherited Members

Fields

DefaultConfig

Gets or sets the factory that creates the Realm configuration used by the sink. The default configuration uses the file loggingDB.realm with schema version 1.

public static Func<RealmConfiguration> DefaultConfig

Field Value

Func<RealmConfiguration>

Methods

RealmDB(LoggerSinkConfiguration)

Writes the log events to a Realm database, configured by DefaultConfig, through a batching sink (batches of 50 events, every 500 ms, queue limit 10000).

public static LoggerConfiguration RealmDB(this LoggerSinkConfiguration loggerConfiguration)

Parameters

loggerConfiguration LoggerSinkConfiguration

The sink configuration.

Returns

LoggerConfiguration

The logger configuration, for chaining.

Examples

var configuration = new LoggerConfiguration();
configuration.WriteTo.RealmDB();