Stacks
    Preparing search index...

    Class ConsoleLogger

    Implements

    Index
    error: {
        (...data: any[]): void;
        (message?: any, ...optionalParams: any[]): void;
    } = console.error

    Type Declaration

      • (...data: any[]): void
      • The console.error() static method outputs a message to the console at the "error" log level. The message is only displayed to the user if the console is configured to display error output. In most cases, the log level is configured within the console UI. The message may be formatted as an error, with red colors and call stack information.

        MDN Reference

        Parameters

        • ...data: any[]

        Returns void

      • (message?: any, ...optionalParams: any[]): void
      • Prints to stderr with newline. Multiple arguments can be passed, with the first used as the primary message and all additional used as substitution values similar to printf(3) (the arguments are all passed to util.format()).

        const code = 5;
        console.error('error #%d', code);
        // Prints: error #5, to stderr
        console.error('error', code);
        // Prints: error 5, to stderr

        If formatting elements (e.g. %d) are not found in the first string then util.inspect() is called on each argument and the resulting string values are concatenated. See util.format() for more information.

        Parameters

        • Optionalmessage: any
        • ...optionalParams: any[]

        Returns void

        v0.1.100

    info: {
        (...data: any[]): void;
        (message?: any, ...optionalParams: any[]): void;
    } = console.info

    Type Declaration

      • (...data: any[]): void
      • The console.info() static method outputs a message to the console at the "info" log level. The message is only displayed to the user if the console is configured to display info output. In most cases, the log level is configured within the console UI. The message may receive special formatting, such as a small "i" icon next to it.

        MDN Reference

        Parameters

        • ...data: any[]

        Returns void

      • (message?: any, ...optionalParams: any[]): void
      • The console.info() function is an alias for log.

        Parameters

        • Optionalmessage: any
        • ...optionalParams: any[]

        Returns void

        v0.1.100

    log: { (...data: any[]): void; (message?: any, ...optionalParams: any[]): void } = console.log

    Type Declaration

      • (...data: any[]): void
      • The console.log() static method outputs a message to the console.

        MDN Reference

        Parameters

        • ...data: any[]

        Returns void

      • (message?: any, ...optionalParams: any[]): void
      • Prints to stdout with newline. Multiple arguments can be passed, with the first used as the primary message and all additional used as substitution values similar to printf(3) (the arguments are all passed to util.format()).

        const count = 5;
        console.log('count: %d', count);
        // Prints: count: 5, to stdout
        console.log('count:', count);
        // Prints: count: 5, to stdout

        See util.format() for more information.

        Parameters

        • Optionalmessage: any
        • ...optionalParams: any[]

        Returns void

        v0.1.100

    success: {
        (...data: any[]): void;
        (message?: any, ...optionalParams: any[]): void;
    } = console.log

    Type Declaration

      • (...data: any[]): void
      • The console.log() static method outputs a message to the console.

        MDN Reference

        Parameters

        • ...data: any[]

        Returns void

      • (message?: any, ...optionalParams: any[]): void
      • Prints to stdout with newline. Multiple arguments can be passed, with the first used as the primary message and all additional used as substitution values similar to printf(3) (the arguments are all passed to util.format()).

        const count = 5;
        console.log('count: %d', count);
        // Prints: count: 5, to stdout
        console.log('count:', count);
        // Prints: count: 5, to stdout

        See util.format() for more information.

        Parameters

        • Optionalmessage: any
        • ...optionalParams: any[]

        Returns void

        v0.1.100

    warn: {
        (...data: any[]): void;
        (message?: any, ...optionalParams: any[]): void;
    } = console.warn

    Type Declaration

      • (...data: any[]): void
      • The console.warn() static method outputs a warning message to the console at the "warning" log level. The message is only displayed to the user if the console is configured to display warning output. In most cases, the log level is configured within the console UI. The message may receive special formatting, such as yellow colors and a warning icon.

        MDN Reference

        Parameters

        • ...data: any[]

        Returns void

      • (message?: any, ...optionalParams: any[]): void
      • The console.warn() function is an alias for error.

        Parameters

        • Optionalmessage: any
        • ...optionalParams: any[]

        Returns void

        v0.1.100