Beamable SDK
Public Member Functions | Static Public Member Functions | List of all members
Beamable.Server.MicroserviceLogFormatter Class Reference

Taken from the compact renderer; and adapted to work without @ symbols An T:Serilog.Formatting.ITextFormatter that writes events in a compact JSON format, for consumption in environments without message template support. Message templates are rendered into text and a hashed event id is included. More...

Inheritance diagram for Beamable.Server.MicroserviceLogFormatter:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Server.MicroserviceLogFormatter:
Collaboration graph
[legend]

Public Member Functions

 MicroserviceLogFormatter (JsonValueFormatter valueFormatter=null)
 
void Format (LogEvent logEvent, TextWriter output)
 Format the log event into the output. Subsequent events will be newline-delimited. More...
 

Static Public Member Functions

static void FormatEvent (LogEvent logEvent, TextWriter output, JsonValueFormatter valueFormatter)
 Format the log event into the output. More...
 

Detailed Description

Taken from the compact renderer; and adapted to work without @ symbols An T:Serilog.Formatting.ITextFormatter that writes events in a compact JSON format, for consumption in environments without message template support. Message templates are rendered into text and a hashed event id is included.

Member Function Documentation

◆ Format()

void Beamable.Server.MicroserviceLogFormatter.Format ( LogEvent  logEvent,
TextWriter  output 
)
inline

Format the log event into the output. Subsequent events will be newline-delimited.

Parameters
logEventThe event to format.
outputThe output.

◆ FormatEvent()

static void Beamable.Server.MicroserviceLogFormatter.FormatEvent ( LogEvent  logEvent,
TextWriter  output,
JsonValueFormatter  valueFormatter 
)
inlinestatic

Format the log event into the output.

Parameters
logEventThe event to format.
outputThe output.
valueFormatterA value formatter for T:Serilog.Events.LogEventPropertyValues on the event.

The documentation for this class was generated from the following file: