LoggingOptions: {
    defaultMetadata?: Record<any, any> | () => Record<any, any>;
    level: LogLevel;
    mode: Runtime;
    transport?: Transport | null;
}

Options to configure logging.

Type declaration

  • OptionaldefaultMetadata?: Record<any, any> | () => Record<any, any>

    Metadata to attach to every logged entry, by default. Defaults to null.

  • level: LogLevel

    Log only if the level of a logged entry is less than or equal to this level. Enables filtering out of debug message in production, for example.

  • mode: Runtime

    The runtime mode.

  • Optionaltransport?: Transport | null

    The transport to use for handling log entries. When not specified or null, this will be determined using getLoggingTransport.