Skip to content

feat: Allow LumberjackLogger methods override TPayload parameter #128

@NachoVazquez

Description

@NachoVazquez

Note: This behavior should be implemented if there is a well-represented need by users of this feature.

Implementing this feature allows using a different payload type or no payload at all in situations where a LumberjackLogger or LumberjackService was injected using a specified generic TPayload parameter.

Example of implementation

 protected createCriticalLogger<TCustomPayload extends TPayload | void = TPayload>(
    message: string
  ): LumberjackLoggerBuilder<TCustomPayload> {
    return this.createLoggerBuilder(LumberjackLevel.Critical, message);
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    lumberjackApplies to issues of the Lumberjack project.

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions