EventFormat Module
What a sink writes for a log event. Rendering happens here, on the sink's thread.
Types
| Type | Description |
|
Readable text for the terminal: the time, the level, the text. |
|
|
One compact JSON object per physical line: the time, the level, the type of the message and its text. A line feed inside the text is escaped, so one event is always one line, and `jq` reads the file as it is. An event whose text is blank writes nothing: the order and solver renderings return a blank for the events they leave out on purpose. |
|
|
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. |
Functions and values
| Function or value |
Description
|
|
The text of a message: the order, solver and formulary renderings, and the MCP session's own messages.
|
GenPRES