Trails Packages
    Preparing search index...

    Interface Logger

    Provides a logger for a standardized application wide logging.

    The logger's log level is configured globally.

    Use the createLogger function to receive a new logger instance for logging.

    interface Logger {
        debug: LogMethod;
        error: LogMethod;
        info: LogMethod;
        prefix: string;
        warn: LogMethod;
        isDebug(): boolean;
    }
    Index

    Properties

    Methods

    Properties

    debug: LogMethod

    Logging method for debug log level. Follows normal LogMethod structure but logs in debug level.

    error: LogMethod

    Logging method for debug error level. Follows normal log method structure but logs in error level.

    info: LogMethod

    Logging method for info log level. Follows normal log method structure but logs in info level.

    prefix: string

    Prefix prepended to all logging messages

    warn: LogMethod

    Logging method for warn log level. Follows normal log method structure but logs in warn level.

    Methods

    • Returns true if debug log level is enabled.

      Returns boolean