@graphty/graphty-element / logging / formatLogRecord
Function: formatLogRecord() ​
formatLogRecord(
record,options?):string
Defined in: graphty-element/src/logging/format.ts:35
Render one record as the element renders its own: [time] [category] [LEVEL] message.
The parts are omitted rather than blanked, so a line with neither a time nor a category is [INFO] message and not two empty brackets.
Parameters ​
record ​
The record to render.
options? ​
What to leave out. Defaults to the current logging configuration's format.
Returns ​
string
The line, with no trailing newline and no structured data -- record.data is passed to a console or a server beside the line rather than flattened into it.