Logo GenPRES

Renderer Type

The text and the type name of what a log event holds, rendered once however many sinks ask for it: rendering is the expensive part of logging, a few milliseconds for a solver event, and the file and the console both need the text. The text is kept as long as the Event itself is alive and no longer. A formatter that throws still yields a line saying so: Serilog drops an event whose formatter throws, and on this stream a dropped event is a lost one.

Constructors

Constructor Description

Renderer(format)

Full Usage: Renderer(format)

Parameters:
Returns: Renderer
format : IMessage -> string
Returns: Renderer

Instance members

Instance member Description

this.Render

Full Usage: this.Render

Parameters:
Returns: string * string
logEvent : LogEvent
Returns: string * string

Type something to start searching.