Documentation ¶
Overview ¶
Package zaplogutil provides reusable utilities for working with ZAP logger.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PreciseTimeEncoder ¶
func PreciseTimeEncoder() zapcore.TimeEncoder
PreciseTimeEncoder encodes the time as RFC3389 with 6 digits of sub-second precision.
func TimezoneAdjust ¶
func TimezoneAdjust(inner zapcore.TimeEncoder, isLocal bool) zapcore.TimeEncoder
TimezoneAdjust returns zapcore.TimeEncoder that adjusts the time to either UTC or local time before logging.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.