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
parentAppget parent app transport handler. Strips base log schema fields before forwarding to the host module.
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
HttpTransportOptionsHTTP transport configuration options for controlling log volume and API load. All options are optional and have sensible defaults for backward compatibility.
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