| 23 | import "sync" |
| 24 | |
| 25 | type lazyWithCore struct { |
| 26 | core Core |
| 27 | originalCore Core |
| 28 | sync.Once |
| 29 | fields []Field |
| 30 | } |
| 31 | |
| 32 | // NewLazyWith wraps a Core with a "lazy" Core that will only encode fields if |
| 33 | // the logger is written to (or is further chained in a lon-lazy manner). |
nothing calls this directly
no outgoing calls
no test coverage detected