Skip to main content

# Diagnostics API

## Enumerations​

Enumeration | Description
--- | ---
Environment | Environments
LogLevels | Log levels

## Functions​

Function | Description
--- | ---
Console | get console transport handler
http | get http transport handler
logger | create logger
logUnhandledErrors | log unhandled errors and promise rejections
parentApp | parent module's transport handler
redactPii | redact PII from a Javascript object
webvitals | log web vitals such as CLS, FID and LCP

## Type Aliases​

Type Alias | Description
--- | ---
BaseLogSchema | base log schema fields
BaseRecordObject | message base object
LogFunction | log data
LogFunctionWithLogLevel | log data with log level
Logger | Logger
LoggerOptions | Logger options
LogMessage | log message object received by transport layer
LogRecord | message object
RuntimeLoggerOptions | logger options that can be changed at runtime
Transport | log message transport layer