Documentation ¶
Index ¶
- func Init(logDir string, level string)
- func SetOutputLevel(level string)
- type Mlog
- func (mlog *Mlog) Close()
- func (mlog *Mlog) Debug(msg ...interface{})
- func (mlog *Mlog) Debugf(format string, v ...interface{})
- func (mlog *Mlog) Error(msg ...interface{})
- func (mlog *Mlog) Errorf(format string, v ...interface{})
- func (mlog *Mlog) Fatal(msg ...interface{})
- func (mlog *Mlog) Fatalf(format string, v ...interface{})
- func (mlog *Mlog) Info(msg ...interface{})
- func (mlog *Mlog) Infof(format string, v ...interface{})
- func (mlog *Mlog) Warn(msg ...interface{})
- func (mlog *Mlog) Warnf(format string, v ...interface{})
- func (mlog *Mlog) Warning(msg ...interface{})
- func (mlog *Mlog) Warningf(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mlog ¶
type Mlog struct {
// contains filtered or unexported fields
}
Marconi Log
func GetLogInstance ¶
Get the log instance by name, if not exist, create a new one, optional parameter specifies whether the log instance outputs to stdout as well as to file or just to file
Click to show internal directories.
Click to hide internal directories.