feat(logging): add a new flag for preprending a prefix to each field in the logs (close #659)

This commit is contained in:
Julien Neuhart
2023-07-19 22:03:09 +02:00
parent f5ce319c24
commit 9f459867bf
4 changed files with 262 additions and 84 deletions

View File

@@ -2,8 +2,8 @@ package gotenberg
import "go.uber.org/zap"
// LoggerProvider is a module interface which exposes a method for creating a
// zap.Logger for other modules.
// LoggerProvider is an interface for a module that supplies a method for
// creating a zap.Logger instance for use by other modules.
//
// func (m *YourModule) Provision(ctx *gotenberg.Context) error {
// provider, _ := ctx.Module(new(gotenberg.LoggerProvider))