Versions in this module Expand all Collapse all v0 v0.0.1 Dec 27, 2020 Changes in this version + func Open(path string) (*os.File, error) + type Level int + const DEBUG + const ERROR + const FATAL + const INFO + const WARN + func Itol(level int) Level + type Logger struct + Active bool + Receivers []*Receiver + func NewLogger(recs ...*Receiver) *Logger + func NewSimpleLogger(w io.Writer, lvl Level, prefix string, color bool) *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) SetLevel(lvl Level) + func (l *Logger) SetPrefix(prefix string) + func (l *Logger) Warn(a ...interface{}) + func (l *Logger) Warnf(format string, a ...interface{}) + type Receiver struct + Active bool + Color bool + Format string + Level Level + func NewReceiver(w io.Writer, prefix string) *Receiver + func (r *Receiver) SetPrefix(prefix string)