@finnairoyj/cdk-constructs-lib - v0.1.11
    Preparing search index...

    Variable loggerConst

    logger: {
        debug: (msg: string, body?: unknown) => void;
        error: (msg: string, body?: unknown) => void;
        info: (msg: string, body?: unknown) => void;
        warn: (msg: string, body?: unknown) => void;
    } = ...

    Simple JSON logger for Lambda functions. Requires Lambdas to set loggingFormat to JSON

    Type Declaration

    • debug: (msg: string, body?: unknown) => void

      Log message with DEBUG level

    • error: (msg: string, body?: unknown) => void

      Log message with ERROR level

    • info: (msg: string, body?: unknown) => void

      Log message with INFO level

    • warn: (msg: string, body?: unknown) => void

      Log message with WARN level