zaplogutil

package
v0.9.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package zaplogutil provides reusable utilities for working with ZAP logger.

Index

Constants

This section is empty.

Variables

View Source
var Clock zapcore.Clock = theClock{}

Clock is an implementation of zapcore.Clock that uses clock.Now().

View Source
var PreciseTimeEncoder = zapcore.TimeEncoderOfLayout("2006-01-02T15:04:05.000000Z07:00")

PreciseTimeEncoder encodes the time as RFC3389 with 6 digits of sub-second precision.

Functions

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL