Documentation ¶
Index ¶
- Constants
- func Debug(v ...interface{})
- func Done() bool
- func Error(v ...interface{})
- func Fatal(v ...interface{})
- func Info(v ...interface{})
- func Init(l LogConstruct, opts ...IOption)
- func NewItem(p string, o option) *item
- type Console
- type File
- type ILog
- type IOption
- type LogConstruct
- type OptionFunc
Constants ¶
View Source
const ( DefaultFile = "itea.log" DefaultClean = 30 TypeInfo = "INFO" TypeError = "ERROR" TypeDebug = "DEBUG" TypeFatal = "FATAL" )
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(l LogConstruct, opts ...IOption)
Types ¶
type ILog ¶
type ILog interface { Init() Done() bool Debug(v ...interface{}) Info(v ...interface{}) Error(v ...interface{}) Fatal(v ...interface{}) }
func LogConsole ¶ added in v1.0.5
func LogConsole() ILog
type IOption ¶ added in v1.0.5
type IOption interface {
// contains filtered or unexported methods
}
func EnableDivide ¶ added in v1.0.5
func EnableDivide() IOption
func EnableRotate ¶ added in v1.0.5
func EnableRotate() IOption
type LogConstruct ¶ added in v1.0.5
type LogConstruct func() ILog
type OptionFunc ¶ added in v1.0.5
type OptionFunc func(ILog)
Click to show internal directories.
Click to hide internal directories.