Documentation
¶
Overview ¶
Package zctx is a context-aware zap logger.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base ¶
Base initializes root logger for using as a base context. Should be done early.
The span and trace IDs must not be added to the base logger because zap can't update or replace fields.
func Start ¶ added in v0.3.0
Start allocates new span logger and returns new context with it. Use Start to reduce allocations during From, caching the span-scoped logger.
Should be same as ctx = With(ctx), but more effective.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.