xlog

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Overview

Package xlog contain interface for Logger

Index

Constants

This section is empty.

Variables

View Source
var ErrorInitLogger = xerror.CommonError{
	Code:    consts.XLogInit,
	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 added in v1.0.2

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