Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Allow LumberjackLogger methods override TPayload parameter #128

Open
NachoVazquez opened this issue Mar 11, 2022 · 0 comments
Open
Labels
lumberjack Applies to issues of the Lumberjack project.

Comments

@NachoVazquez
Copy link
Contributor

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);
  }
@NachoVazquez NachoVazquez added the lumberjack Applies to issues of the Lumberjack project. label Mar 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lumberjack Applies to issues of the Lumberjack project.
Projects
Status: Backlog
Development

No branches or pull requests

1 participant