xdefaultLogger

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options ...*TLoggerOptions) logger.ILogger

Types

type TDefaultLogger

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

func (*TDefaultLogger) Critical

func (lg *TDefaultLogger) Critical(tag string, v ...interface{})

输出关键信息

func (*TDefaultLogger) CriticalF

func (lg *TDefaultLogger) CriticalF(tag string, format string, v ...interface{})

格式化输出关键信息

func (*TDefaultLogger) CriticalFLn

func (lg *TDefaultLogger) CriticalFLn(tag string, format string, v ...interface{})

格式化输出关键信息及换行

func (*TDefaultLogger) Debug

func (lg *TDefaultLogger) Debug(tag string, v ...interface{})

输出调试信息

func (*TDefaultLogger) DebugF

func (lg *TDefaultLogger) DebugF(tag string, format string, v ...interface{})

格式化输出调度信息

func (*TDefaultLogger) DebugFLn

func (lg *TDefaultLogger) DebugFLn(tag string, format string, v ...interface{})

格式化输出调度信息及换行

func (*TDefaultLogger) Error

func (lg *TDefaultLogger) Error(tag string, v ...interface{})

输出错误信息

func (*TDefaultLogger) ErrorF

func (lg *TDefaultLogger) ErrorF(tag string, format string, v ...interface{})

格式化输出错误信息

func (*TDefaultLogger) ErrorFLn

func (lg *TDefaultLogger) ErrorFLn(tag string, format string, v ...interface{})

格式化输出错误信息及换行符

func (*TDefaultLogger) Info

func (lg *TDefaultLogger) Info(tag string, v ...interface{})

输出信息

func (*TDefaultLogger) InfoF

func (lg *TDefaultLogger) InfoF(tag string, format string, v ...interface{})

格式化输出信息

func (*TDefaultLogger) InfoFLn

func (lg *TDefaultLogger) InfoFLn(tag string, format string, v ...interface{})

格式输出信息及换行符

func (*TDefaultLogger) Notice

func (lg *TDefaultLogger) Notice(tag string, v ...interface{})

输出通知信息

func (*TDefaultLogger) NoticeF

func (lg *TDefaultLogger) NoticeF(tag string, format string, v ...interface{})

格式输出通知信息

func (*TDefaultLogger) NoticeFLn

func (lg *TDefaultLogger) NoticeFLn(tag string, format string, v ...interface{})

格式输出通知信息及换行

func (*TDefaultLogger) Print

func (lg *TDefaultLogger) Print(tag string, level uint8, v ...interface{})

控制台打印信息

func (*TDefaultLogger) PrintF

func (lg *TDefaultLogger) PrintF(tag string, level uint8, format string, v ...interface{})

控制台打印格式化信息

func (*TDefaultLogger) PrintFLn

func (lg *TDefaultLogger) PrintFLn(tag string, level uint8, format string, v ...interface{})

控制台打印格式化信息及换行符

func (*TDefaultLogger) Warning

func (lg *TDefaultLogger) Warning(tag string, v ...interface{})

输出警告信息

func (*TDefaultLogger) WarningF

func (lg *TDefaultLogger) WarningF(tag string, format string, v ...interface{})

格式化输出警告信息

func (*TDefaultLogger) WarningFLn

func (lg *TDefaultLogger) WarningFLn(tag string, format string, v ...interface{})

格式化输出警告信息及换行

type TLoggerOptions

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

func NewLoggerOptions

func NewLoggerOptions() *TLoggerOptions

func (*TLoggerOptions) GetAsync

func (lo *TLoggerOptions) GetAsync() bool

func (*TLoggerOptions) GetDebug

func (lo *TLoggerOptions) GetDebug() bool

func (*TLoggerOptions) GetEnableStack

func (lo *TLoggerOptions) GetEnableStack() bool

func (*TLoggerOptions) GetFlags

func (lo *TLoggerOptions) GetFlags() int

func (*TLoggerOptions) GetLevel

func (lo *TLoggerOptions) GetLevel() int

func (*TLoggerOptions) GetStackSkip

func (lo *TLoggerOptions) GetStackSkip() int

func (*TLoggerOptions) GetWriter

func (lo *TLoggerOptions) GetWriter() io.Writer

func (*TLoggerOptions) SetAsync

func (lo *TLoggerOptions) SetAsync(async bool) *TLoggerOptions

func (*TLoggerOptions) SetDebug

func (lo *TLoggerOptions) SetDebug(debug bool) *TLoggerOptions

func (*TLoggerOptions) SetEnableStack

func (lo *TLoggerOptions) SetEnableStack(enable bool) *TLoggerOptions

func (*TLoggerOptions) SetFlags

func (lo *TLoggerOptions) SetFlags(flags int) *TLoggerOptions

func (*TLoggerOptions) SetLevel

func (lo *TLoggerOptions) SetLevel(level int) *TLoggerOptions

func (*TLoggerOptions) SetStackSkip

func (lo *TLoggerOptions) SetStackSkip(skip int) *TLoggerOptions

func (*TLoggerOptions) SetWriter

func (lo *TLoggerOptions) SetWriter(writer io.Writer) *TLoggerOptions

Jump to

Keyboard shortcuts

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