shared_log

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: MIT Imports: 3 Imported by: 0

README

shared-log

Simple shared zaplog for golang modules

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, fields ...zap.Field)

func Errof

func Errof(err error)

func Error

func Error(msg string, fields ...zap.Field)

func Extract

func Extract() *zap.Logger

func Info

func Info(msg string, fields ...zap.Field)

func NewDebugLogger

func NewDebugLogger() *zap.Logger

func Panic

func Panic(msg string, fields ...zap.Field)

func ReplaceLogger

func ReplaceLogger(logger *zap.Logger)

func Warn

func Warn(msg string, fields ...zap.Field)

Types

type IBaseLogger added in v1.1.0

type IBaseLogger interface {
	Info(msg string, fields ...zap.Field)
	Warn(msg string, fields ...zap.Field)
	Error(msg string, fields ...zap.Field)
	Debug(msg string, fields ...zap.Field)
	Panic(msg string, fields ...zap.Field)
}

func NewTrace added in v1.1.0

func NewTrace(defaultFields ...zap.Field) IBaseLogger

Jump to

Keyboard shortcuts

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