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...
|
|
| 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 void | FormatEvent (LogEvent logEvent, TextWriter output, JsonValueFormatter valueFormatter) |
| | Format the log event into the output. More...
|
| |
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.
◆ 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
-
| logEvent | The event to format. |
| output | The output. |
◆ FormatEvent()
| static void Beamable.Server.MicroserviceLogFormatter.FormatEvent |
( |
LogEvent |
logEvent, |
|
|
TextWriter |
output, |
|
|
JsonValueFormatter |
valueFormatter |
|
) |
| |
|
inlinestatic |
Format the log event into the output.
- Parameters
-
| logEvent | The event to format. |
| output | The output. |
| valueFormatter | A value formatter for T:Serilog.Events.LogEventPropertyValues on the event. |
The documentation for this class was generated from the following file:
- microservice/microservice/dbmicroservice/MicroserviceLogFormatter.cs