Core - v1.0.0
    Preparing search index...

    Interface LogContext

    Ambient fields attached to every line a logger emits.

    Bayu Dwiyan Satria

    1.0.0

    1.0.0

    interface LogContext {
        method?: string;
        path?: string;
        requestId?: string;
        service?: string;
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown

      Any other ambient field worth repeating on every line.

    Index
    method?: string

    HTTP method of the request being handled.

    path?: string

    Path of the request being handled.

    requestId?: string

    Correlates every line produced while handling one request.

    service?: string

    Which part of the application emitted the line.