Skip to content

Commit d2ebc9a

Browse files
committed
add fields
1 parent 46fafcc commit d2ebc9a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

logp/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ type Config struct {
3838
Files FileConfig `config:"files"`
3939
Metrics MetricsConfig `config:"metrics"`
4040

41+
WithFields map[string]any `config:"with_fields" yaml:"with_fields"`
42+
4143
environment Environment
4244
addCaller bool // Adds package and line number info to messages.
4345
development bool // Controls how DPanic behaves.

0 commit comments

Comments
 (0)