CreateDict creates an Event to be used with the Context.Dict method. It preserves the stack, hooks, and context from the logger. Call usual field methods like Str, Int etc to add fields to this event and give it as argument the Context.Dict method.
()
| 39 | // Call usual field methods like Str, Int etc to add fields to this |
| 40 | // event and give it as argument the Context.Dict method. |
| 41 | func (c Context) CreateDict() *Event { |
| 42 | return newEvent(nil, DebugLevel, c.l.stack, c.l.ctx, c.l.hooks) |
| 43 | } |
| 44 | |
| 45 | // CreateArray creates an Array to be used with the Context.Array method. |
| 46 | // It preserves the stack, hooks, and context from the logger. |
nothing calls this directly
no test coverage detected