Logo GenPRES

SerilogBridge Module

Turns a Serilog ILogger into the domain-facing Logger record. The whole Event crosses as one scalar property: the thread that logs stores a reference and enqueues, and the text is rendered by the sink's formatter on the sink's own thread. That is safe because an Event and every message under it is immutable. This is the server's bridge written a second time: only the two executables refer to Serilog, and neither refers to the other.

Functions and values

Function or value Description

EventProperty

Full Usage: EventProperty

Returns: string

The name of the one property a log event from the bridge carries.

Returns: string

Template

Full Usage: Template

Returns: string

The message template that binds the Event to that property.

Returns: string

toLogger serilogLogger

Full Usage: toLogger serilogLogger

Parameters:
Returns: Logger
serilogLogger : ILogger
Returns: Logger

toSerilogLevel _arg1

Full Usage: toSerilogLevel _arg1

Parameters:
Returns: LogEventLevel
_arg1 : Level
Returns: LogEventLevel

tryEvent logEvent

Full Usage: tryEvent logEvent

Parameters:
Returns: Event option

The Event a log event from the bridge carries; None for a log event from elsewhere.

logEvent : LogEvent
Returns: Event option

Type something to start searching.