common

package
v0.0.0-...-ee5be7b Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTimeEncoder

func GetTimeEncoder(name string) (zapcore.TimeEncoder, error)

Types

type JsonEncoderConfig

type JsonEncoderConfig struct {
	TimeKey       string `logos-config:"time_key"`
	LevelKey      string `logos-config:"level_key"`
	NameKey       string `logos-config:"name_key"`
	CallerKey     string `logos-config:"caller_key"`
	MessageKey    string `logos-config:"message_key"`
	StacktraceKey string `logos-config:"stacktrace_key"`
	LineEnding    string `logos-config:"line_ending"`
	TimeEncoder   string `logos-config:"time_encoder" logos-validate:"logos.oneof=epoch epoch_millis epoch_nanos ISO8601"`
}

Config is used to pass encoding parameters to New.

Jump to

Keyboard shortcuts

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