Skip to content

Add child() method to ILogger interface #32

@AdamBHolt

Description

@AdamBHolt

Priority: MED
Package: @saga-ed/soa-logger
Coach ref: hipponot/nimbee#8035

The ILogger interface has no child() method. Per-request loggers with bound context (e.g., requestId) cannot be created. All downstream service/data layer logs lack request correlation.

Requested changes:

  1. Add child(bindings: Record<string, unknown>): ILogger to the ILogger interface
  2. Implement in PinoLogger (Pino natively supports logger.child())

Combined with AsyncLocalStorage, this enables automatic request correlation across the entire call stack without threading logger instances manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions