Documentation ¶
Index ¶
- Constants
- func CloseFile()
- func Debug(format string, values ...any)
- func Error(format string, values ...any)
- func Fatal(format string, values ...any)
- func Info(format string, values ...any)
- func SetFlag(f int)
- func SetLogFile(path string) error
- func SetMask(m int)
- func Trace(format string, values ...any)
- func Unknown(format string, values ...any)
- func Warning(format string, values ...any)
- type File
Constants ¶
View Source
const ( MaskUNKNOWN = 1 << iota MaskDEBUG MaskTRACE MaskINFO MaskWARNING MaskERROR MaskFATAL MaskStdMask = MaskINFO | MaskWARNING | MaskERROR | MaskFATAL MaskStdAll = MaskUNKNOWN | MaskDEBUG | MaskTRACE | MaskINFO | MaskWARNING | MaskERROR | MaskFATAL )
View Source
const ( FlagDate = 1 << iota FlagTime FlagLongFile FlagShortFile FlagPrefix FlagStdFlag = FlagDate | FlagTime | FlagPrefix )
Variables ¶
This section is empty.
Functions ¶
func SetLogFile ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.