Iskra API Reference
    Preparing search index...

    Interface StructuredLogger

    Adapts a pino-style logger (logger.info(obj, msg), as the App's): details go in the structured object (err for errors), not appended to the text.

    interface StructuredLogger {
        child?(bindings: Record<string, unknown>): StructuredLogger;
        debug(obj: object, msg: string): void;
        error(obj: object, msg: string): void;
        info(obj: object, msg: string): void;
        warn(obj: object, msg: string): void;
    }
    Index
    • Parameters

      • bindings: Record<string, unknown>

      Returns StructuredLogger

    • Parameters

      • obj: object
      • msg: string

      Returns void

    • Parameters

      • obj: object
      • msg: string

      Returns void

    • Parameters

      • obj: object
      • msg: string

      Returns void

    • Parameters

      • obj: object
      • msg: string

      Returns void