Versions in this module Expand all Collapse all v0 v0.2.10 Feb 3, 2020 Changes in this version + const Debug + const Error + const Fatal + const Info + const Off + const Trace + const Warn + var L = Empty() + var Levels = []string + var NoClosure = func() PrintcFunc + var NoPrintf = func() PrintfFunc + var NoPrintln = func() PrintlnFunc + var NoSpew = func() SpewFunc + var StartupTime = time.Now() + func Composite(text, level string, color bool) string + func DEBUG(a ...interface{}) + func DEBUGC(fn func() string) + func DEBUGF(format string, a ...interface{}) + func DirectionString(inbound bool) string + func ERROR(a ...interface{}) + func ERRORC(fn func() string) + func ERRORF(format string, a ...interface{}) + func FATAL(a ...interface{}) + func FATALC(fn func() string) + func FATALF(format string, a ...interface{}) + func FileExists(filePath string) bool + func INFO(a ...interface{}) + func INFOC(fn func() string) + func INFOF(format string, a ...interface{}) + func PickNoun(n int, singular, plural string) string + func Print(a ...interface{}) + func Printf(format string, a ...interface{}) + func Println(a ...interface{}) + func SPEW(a interface{}) + func SetLogWriter(w io.Writer) + func TRACE(a ...interface{}) + func TRACEC(fn func() string) + func TRACEF(format string, a ...interface{}) + func WARN(a ...interface{}) + func WARNC(fn func() string) + func WARNF(format string, a ...interface{}) + type Entry struct + CodeLocation string + Level string + Text string + Time time.Time + type LogWriter struct + func (w *LogWriter) Print(a ...interface{}) + func (w *LogWriter) Printf(format string, a ...interface{}) + func (w *LogWriter) Println(a ...interface{}) + type Logger struct + Color bool + Debug PrintlnFunc + Debugc PrintcFunc + Debugf PrintfFunc + Error PrintlnFunc + Errorc PrintcFunc + Errorf PrintfFunc + Fatal PrintlnFunc + Fatalc PrintcFunc + Fatalf PrintfFunc + Info PrintlnFunc + Infoc PrintcFunc + Infof PrintfFunc + LogChan chan Entry + LogFileHandle *os.File + Trace PrintlnFunc + Tracec PrintcFunc + Tracef PrintfFunc + Traces SpewFunc + Warn PrintlnFunc + Warnc PrintcFunc + Warnf PrintfFunc + Writer LogWriter + func Empty() *Logger + func (l *Logger) SetLevel(level string, color bool) *Logger + func (l *Logger) SetLogPaths(logPath, logFileName string) + type PrintcFunc *func(func() string) + type PrintfFunc *func(format string, a ...interface{}) + type PrintlnFunc *func(a ...interface{}) + type SpewFunc *func(interface{})