Documentation ¶
Index ¶
- Constants
- Variables
- func Color(code, msg string) string
- func Debug(a ...interface{})
- func Debugf(format string, a ...interface{})
- func Error(a ...interface{})
- func Errorf(format string, a ...interface{})
- func Fatal(a ...interface{})
- func Fatalf(format string, a ...interface{})
- func GetGID() uint64
- func Info(a ...interface{})
- func Infof(format string, a ...interface{})
- func Init(level uint8, maxPerLogSizeMb, maxLogsSizeMb int64)
- func SetPrintLevel(level uint8)
- func Warn(a ...interface{})
- func Warnf(format string, a ...interface{})
- type Logger
- func (l *Logger) Debug(a ...interface{})
- func (l *Logger) Debugf(format string, a ...interface{})
- func (l *Logger) Error(a ...interface{})
- func (l *Logger) Errorf(format string, a ...interface{})
- func (l *Logger) Fatal(a ...interface{})
- func (l *Logger) Fatalf(format string, a ...interface{})
- func (l *Logger) Info(a ...interface{})
- func (l *Logger) Infof(format string, a ...interface{})
- func (l *Logger) Output(level uint8, a ...interface{})
- func (l *Logger) Outputf(level uint8, format string, v ...interface{})
- func (l *Logger) SetPrintLevel(level uint8)
- func (l *Logger) Warn(a ...interface{})
- func (l *Logger) Warnf(format string, a ...interface{})
Constants ¶
View Source
const ( Red = "1;31" Green = "1;32" Yellow = "1;33" Pink = "1;35" Cyan = "1;36" )
View Source
const ( OutputPath = "./Logs/" // The log files output path KBSize = int64(1024) MBSize = KBSize * 1024 GBSize = MBSize * 1024 )
Variables ¶
View Source
var (
Stdout = os.Stdout
)
Functions ¶
func SetPrintLevel ¶ added in v0.2.1
func SetPrintLevel(level uint8)
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) SetPrintLevel ¶
Click to show internal directories.
Click to hide internal directories.