logging

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DebugLevel logs are usually disabled in production.
	DebugLevel = zapcore.DebugLevel
	// InfoLevel is the default logging priority.
	InfoLevel = zapcore.InfoLevel
	// WarnLevel logs are more important than Info.
	WarnLevel = zapcore.WarnLevel
	// ErrorLevel logs are high-priority.
	ErrorLevel = zapcore.ErrorLevel
	// PanicLevel logs a message, then panics.
	PanicLevel = zapcore.PanicLevel
	// FatalLevel logs a message, then calls os.Exit(1).
	FatalLevel = zapcore.FatalLevel
)

Variables

View Source
var Any = zap.Any
View Source
var Array = zap.Array
View Source
var Binary = zap.Binary
View Source
var Bool = zap.Bool
View Source
var Bools = zap.Bools
View Source
var ByteString = zap.ByteString
View Source
var ByteStrings = zap.ByteStrings
View Source
var Complex128 = zap.Complex128
View Source
var Complex128s = zap.Complex128s
View Source
var Complex64 = zap.Complex64
View Source
var Complex64s = zap.Complex64s
View Source
var Duration = zap.Duration
View Source
var Durations = zap.Durations
View Source
var Error = zap.Error
View Source
var Errors = zap.Errors
View Source
var Float32 = zap.Float32
View Source
var Float32s = zap.Float32s
View Source
var Float64 = zap.Float64
View Source
var Float64s = zap.Float64s
View Source
var Int = zap.Int
View Source
var Int16 = zap.Int16
View Source
var Int16s = zap.Int16s
View Source
var Int32 = zap.Int32
View Source
var Int32s = zap.Int32s
View Source
var Int64 = zap.Int64
View Source
var Int64s = zap.Int64s
View Source
var Int8 = zap.Int8
View Source
var Int8s = zap.Int8s
View Source
var Ints = zap.Ints
View Source
var NamedError = zap.NamedError
View Source
var Namespace = zap.Namespace
View Source
var Reflect = zap.Reflect
View Source
var Stack = zap.Stack
View Source
var String = zap.String
View Source
var Strings = zap.Strings
View Source
var Time = zap.Time
View Source
var Times = zap.Times
View Source
var Uint = zap.Uint
View Source
var Uint16 = zap.Uint16
View Source
var Uint16s = zap.Uint16s
View Source
var Uint32 = zap.Uint32
View Source
var Uint32s = zap.Uint32s
View Source
var Uint64 = zap.Uint64
View Source
var Uint64s = zap.Uint64s
View Source
var Uint8 = zap.Uint8
View Source
var Uint8s = zap.Uint8s
View Source
var Uints = zap.Uints

Functions

This section is empty.

Types

type Field

type Field = zap.Field

type Level

type Level = zapcore.Level

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(opts LoggerOptions) (*Logger, error)

func (*Logger) Log

func (l *Logger) Log(level Level, msg string, fields ...Field)

func (*Logger) Sync

func (l *Logger) Sync() error

func (*Logger) With

func (l *Logger) With(fields ...Field) *Logger

type LoggerOptions

type LoggerOptions interface {
	GetEnabled() bool
	GetFormat() string
	GetLevel() string
	GetOutputPaths() []string
	GetErrorOutputPaths() []string
}

Jump to

Keyboard shortcuts

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