A tagged string prefix that creates a processed log line.
The returned log line can be used in any form:
logger.info(...logline`Logged value: ${value}`); // Explicitly expand the log line. logger.info(logline`Logged value: ${value}`); // The log line will be expanded by logger.
The log line formatted accordingly to the following rules:
Template strings and values not separated by whitespace joined into single string.
The values separated by whitespaces are added to the log line as is.
Template strings trimmed.
Any number of subsequent whitespaces in template strings replaced with single space.
Leading and/or trailing template string removed if it became empty.
All Loggable values processed before being joined into string. They may be processed as many times as
requested. The final joining happens at the output ('out') or default (undefined)logging.
A tagged string prefix that creates a processed log line.
The returned log line can be used in any form:
The log line formatted accordingly to the following rules:
All Loggable values processed before being joined into string. They may be processed as many times as requested. The final joining happens at the output (
'out'
) or default (undefined
)logging.