i2 Connect SDK
Search results for

    Show/hide table of contents

    Home > @i2analyze/i2connect > ILogger

    ILogger interface

    A diagnostic logger that i2 Connect services can use.

    Signature:

    export interface ILogger 
    

    Introduced: API version 1.0

    Remarks

    In formatted message strings, '%d' is a numeric representation of the parameter, '%j' is a JSON representation of the parameter, and '%s' is a string representation of the parameter.

    Any extra parameters are interpreted automatically as '%s'.

    The default logging level is info.

    Methods

    Method Description
    debug(message) Logs a message at 'debug' level.
    debug(format, args) Logs a formatted message at 'debug' level.
    error(message) Logs a message at 'error' level.
    error(format, args) Logs a formatted message at 'error' level.
    error(error) Logs an Error object at 'error' level.
    info(message) Logs a message at 'info' level.
    info(format, args) Logs a formatted message at 'info' level.
    setLogLevel(level) Sets the minimum level, or severity, of messages that will be emitted.
    warn(message) Logs a message at 'warn' level.
    warn(format, args) Logs a formatted message at 'warn' level.
    In this article
    Back to top © N. Harris Computer Corporation (2022)