xlog

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

README

xlog

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorInitLogger = xerror.CommonError{
	Code:    10101,
	Message: "can't initialize logger",
	Err:     nil,
}

Functions

This section is empty.

Types

type Fields

type Fields map[string]interface{}

type Logger

type Logger interface {
	Debugf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Warnf(format string, args ...interface{})
	Tracef(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	Fatalf(format string, args ...interface{})
	Debug(msg string)
	Info(msg string)
	Warn(msg string)
	Trace(msg string)
	Error(msg string)
	Fatal(msg string)

	WithXFields(fields Fields) Logger
	WithXField(key string, value interface{}) Logger
}

Logger interface for integration_common

type LoggerCfg

type LoggerCfg struct {
	Level      string
	TimeFormat string
	Out        io.Writer
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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