Skip to main content

core.logger._constructor_

Home > @medplum/core > Logger > (constructor)

Logger.(constructor)

Constructs a new instance of the Logger class

Signature:

constructor(write: (msg: string) => void, metadata?: Record<string, any>, level?: LogLevel, options?: LoggerOptions | undefined);

Parameters

Parameter

Type

Description

write

(msg: string) => void

metadata

Record<string, any>

(Optional)

level

LogLevel

(Optional)

options

LoggerOptions | undefined

(Optional)