Documentation
¶
Index ¶
- Constants
- Variables
- func Debug(a ...any)
- func Debugf(format string, a ...any)
- func Error(a ...any)
- func Errorf(format string, a ...any)
- func Fatal(a ...any)
- func Fatalf(format string, a ...any)
- func Fatalln(a ...any)
- func Info(a ...any)
- func Infof(format string, a ...any)
- func Panic(a ...any)
- func Panicf(format string, a ...any)
- func Panicln(a ...any)
- func Print(a ...any)
- func Printf(format string, a ...any)
- func Println(format string, a ...any)
- func SetFlags(f int)
- func SetLevel(l int)
- func SetOutput(w io.Writer)
- func Trace(a ...any)
- func Tracef(format string, a ...any)
- func Warn(a ...any)
- func Warnf(format string, a ...any)
- func WriteLog(tag, s string)
- func Writer() io.Writer
Constants ¶
View Source
const ( TagTrace = "TRAC" TagDebug = "DEBG" TagInfo = "INFO" TagWarn = "WARN" TagError = "ERRO" TagFatal = "FATL" TagPanic = "PNIC" TagPrint = "PRNT" LevelTrace = 5 LevelDebug = 4 LevelInfo = 3 LevelWarn = 2 LevelError = 1 LevelFatal = 0 )
View Source
const ( Lnone = 0 // none file Lfile = 1 // d.go:23 Lfunc = 1 << 1 // foo LfileFunc = Lfunc | Lfile // d.go:foo:23 )
Variables ¶
View Source
var (
Level = LevelInfo
)
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.