log

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogWayConsole = logs.AdapterConsole
	LogWayFile    = logs.AdapterFile
)

Functions

func Debug

func Debug(format string, v ...interface{})

func Error

func Error(format string, v ...interface{})

func Info

func Info(format string, v ...interface{})

func Init

func Init(conf *LogConf)

func Notice

func Notice(format string, v ...interface{})

func Warn

func Warn(format string, v ...interface{})

Types

type LogConf

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

//////////////////////////////////////////////////////////////////////////

func DefaultLogConf

func DefaultLogConf() *LogConf

func (*LogConf) LogLevel

func (lc *LogConf) LogLevel() string

func (*LogConf) SetLogFile

func (lc *LogConf) SetLogFile(file string) *LogConf

func (*LogConf) SetLogLevel

func (lc *LogConf) SetLogLevel(level string) *LogConf

func (*LogConf) SetLogWay

func (lc *LogConf) SetLogWay(way string) *LogConf

type Logger

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

/////////////////////////////////////////////////////////////////////////////

func NewLogger

func NewLogger() *Logger

func (*Logger) Apply

func (l *Logger) Apply(lc *LogConf) *Logger

Apply applies all config to BeeLogger

func (*Logger) Debug

func (l *Logger) Debug(format string, v ...interface{})

func (*Logger) Error

func (l *Logger) Error(format string, v ...interface{})

func (*Logger) Info

func (l *Logger) Info(format string, v ...interface{})

func (*Logger) Notice

func (l *Logger) Notice(format string, v ...interface{})

func (*Logger) Warn

func (l *Logger) Warn(format string, v ...interface{})

Jump to

Keyboard shortcuts

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