LoggerTransports are the functions that are used to log messages with different severity levels.

They are statically defined on the Logger class.

Update them to change the way messages are logged.

Example

const logger = new Logger("MyLogger");
logger.transports = { debug: print, info: print, warn: print, error: print };

Hierarchy

  • LoggerTransports

Properties

debug: ((message) => void)

Type declaration

    • (message): void
    • Parameters

      • message: string

      Returns void

error: ((message) => void)

Type declaration

    • (message): void
    • Parameters

      • message: string

      Returns void

info: ((message) => void)

Type declaration

    • (message): void
    • Parameters

      • message: string

      Returns void

trace: ((message) => void)

Type declaration

    • (message): void
    • Parameters

      • message: string

      Returns void

warn: ((message) => void)

Type declaration

    • (message): void
    • Parameters

      • message: string

      Returns void

Generated using TypeDoc