Versions in this module Expand all Collapse all v1 v1.0.0 Sep 6, 2019 Changes in this version + const Version + var DebugText = Levels[DebugLevel].SetText + var Default = New() + var ErrorText = Levels[ErrorLevel].SetText + var GetTextForLevel = func(level Level, enableColor bool) string + var InfoText = Levels[InfoLevel].SetText + var Levels = map[Level]*LevelMetadata + var NopOutput = pio.NopOutput() + var VerboseText = Levels[VerboseLevel].SetText + var WarnText = Levels[WarnLevel].SetText + func AddOutput(writers ...io.Writer) + func Debug(v ...interface{}) + func Debugf(format string, args ...interface{}) + func Error(v ...interface{}) + func Errorf(format string, args ...interface{}) + func Fatal(v ...interface{}) + func Fatalf(format string, args ...interface{}) + func Handle(handler Handler) + func Hijack(hijacker func(ctx *pio.Ctx)) + func Info(v ...interface{}) + func Infof(format string, args ...interface{}) + func Install(logger ExternalLogger) + func InstallStd(logger StdLogger) + func Logf(level Level, format string, args ...interface{}) + func NewLine(newLineChar string) + func Print(v ...interface{}) + func Println(v ...interface{}) + func Reset() + func Scan(r io.Reader) (cancel func()) + func SetLevel(levelName string) + func SetOutput(w io.Writer) + func SetTimeFormat(s string) + func Verbose(v ...interface{}) + func Verbosef(format string, args ...interface{}) + func Warn(v ...interface{}) + func Warnf(format string, args ...interface{}) + type ExternalLogger interface + Debug func(...interface{}) + Error func(...interface{}) + Info func(...interface{}) + Print func(...interface{}) + Println func(...interface{}) + Warn func(...interface{}) + type Handler func(value *Log) (handled bool) + type Level uint32 + const DebugLevel + const DisableLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const VerboseLevel + const WarnLevel + type LevelMetadata struct + AlternativeNames []string + ColorfulText string + Name string + RawText string + func (m *LevelMetadata) SetText(newRawText string, newColorfulText string) + func (m *LevelMetadata) Text(enableColor bool) string + type Log struct + Level Level + Logger *Logger + Message string + NewLine bool + Time time.Time + func (l Log) FormatTime() string + type Logger struct + Level Level + NewLine bool + Prefix []byte + Printer *pio.Printer + TimeFormat string + func Child(name string) *Logger + func New() *Logger + func SetPrefix(s string) *Logger + func (l *Logger) AddOutput(writers ...io.Writer) *Logger + func (l *Logger) Child(name string) *Logger + func (l *Logger) Clone() *Logger + func (l *Logger) Debug(v ...interface{}) + func (l *Logger) Debugf(format string, args ...interface{}) + func (l *Logger) DisableNewLine() *Logger + func (l *Logger) Error(v ...interface{}) + func (l *Logger) Errorf(format string, args ...interface{}) + func (l *Logger) Fatal(v ...interface{}) + func (l *Logger) Fatalf(format string, args ...interface{}) + func (l *Logger) Handle(handler Handler) + func (l *Logger) Hijack(hijacker func(ctx *pio.Ctx)) + func (l *Logger) Info(v ...interface{}) + func (l *Logger) Infof(format string, args ...interface{}) + func (l *Logger) Install(logger ExternalLogger) + func (l *Logger) InstallStd(logger StdLogger) + func (l *Logger) Log(level Level, v ...interface{}) + func (l *Logger) Logf(level Level, format string, args ...interface{}) + func (l *Logger) Print(v ...interface{}) + func (l *Logger) Printf(format string, args ...interface{}) + func (l *Logger) Println(v ...interface{}) + func (l *Logger) Scan(r io.Reader) (cancel func()) + func (l *Logger) SetLevel(levelName string) *Logger + func (l *Logger) SetOutput(w io.Writer) *Logger + func (l *Logger) SetPrefix(s string) *Logger + func (l *Logger) SetTimeFormat(s string) *Logger + func (l *Logger) Verbose(v ...interface{}) + func (l *Logger) Verbosef(format string, args ...interface{}) + func (l *Logger) Warn(v ...interface{}) + func (l *Logger) Warnf(format string, args ...interface{}) + type StdLogger interface + Print func(v ...interface{}) + Printf func(format string, v ...interface{}) + Println func(v ...interface{})