Class ConsoleOutput

Implement this API in order to receive log writes into your custom output.

Hierarchy

  • ConsoleOutput

Implements

Constructors

Properties

Methods

Constructors

Properties

logMethods: {
    debug: {
        (...data): void;
        (message?, ...optionalParams): void;
    };
    error: {
        (...data): void;
        (message?, ...optionalParams): void;
    };
    info: {
        (...data): void;
        (message?, ...optionalParams): void;
    };
    warn: {
        (...data): void;
        (message?, ...optionalParams): void;
    };
} = ...

Type declaration

  • debug: {
        (...data): void;
        (message?, ...optionalParams): void;
    }
      • (...data): void
      • Parameters

        • Rest ...data: any[]

        Returns void

      • (message?, ...optionalParams): void
      • The console.debug() function is an alias for log.

        Parameters

        • Optional message: any
        • Rest ...optionalParams: any[]

        Returns void

        Since

        v8.0.0

  • error: {
        (...data): void;
        (message?, ...optionalParams): void;
    }
      • (...data): void
      • Parameters

        • Rest ...data: any[]

        Returns void

      • (message?, ...optionalParams): 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

        • Optional message: any
        • Rest ...optionalParams: any[]

        Returns void

        Since

        v0.1.100

  • info: {
        (...data): void;
        (message?, ...optionalParams): void;
    }
      • (...data): void
      • Parameters

        • Rest ...data: any[]

        Returns void

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

        Parameters

        • Optional message: any
        • Rest ...optionalParams: any[]

        Returns void

        Since

        v0.1.100

  • warn: {
        (...data): void;
        (message?, ...optionalParams): void;
    }
      • (...data): void
      • Parameters

        • Rest ...data: any[]

        Returns void

      • (message?, ...optionalParams): void
      • The console.warn() function is an alias for __type.

        Parameters

        • Optional message: any
        • Rest ...optionalParams: any[]

        Returns void

        Since

        v0.1.100

Methods

Generated using TypeDoc