Skip to main content

Diagnostics API

Enumerations

EnumerationDescription
EnvironmentEnvironments
LogLevelsLog levels

Functions

FunctionDescription
Consoleget console transport handler
httpget http transport handler
loggercreate logger
logUnhandledErrorslog unhandled errors and promise rejections
parentAppparent module's transport handler
redactPiiredact PII from a Javascript object
webvitalslog web vitals such as CLS, FID and LCP

Type Aliases

Type AliasDescription
BaseLogSchemabase log schema fields
BaseRecordObjectmessage base object
LogFunctionlog data
LogFunctionWithLogLevellog data with log level
LoggerLogger
LoggerOptionsLogger options
LogMessagelog message object received by transport layer
LogRecordmessage object
RuntimeLoggerOptionslogger options that can be changed at runtime
Transportlog message transport layer