Skip to content

Commit 60ea3e0

Browse files
authored
add fields (#284)
1 parent 8b03463 commit 60ea3e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)