Optional
context: Record<string, unknown>Optional
context: Record<string, unknown>Optional
context: Record<string, unknown>Optional
context: Record<string, unknown>Optional
context: Record<string, unknown>Optional
context: Record<string, unknown>Optional
context: Record<string, unknown>
Outputs messages to the console based on the specified log level.
Supports placeholder substitution in messages (e.g.,
{key}
) using values from the optionalcontext
object. Context keys not used in substitution are appended to the output as additional data. Each log message is prefixed with the log level in square brackets (e.g.,[INFO]
).Example