Documentation ¶
Index ¶
- Constants
- func Close()
- func CloseFile()
- func CloseStderr()
- func CloseStdout()
- func Debug(format string, values ...any)
- func Error(format string, values ...any)
- func Fatal(format string, values ...any)
- func GetFlag() uint32
- func GetMask() uint32
- func Info(format string, values ...any)
- func SetFlag(f uint32)
- func SetLogFile(path string) error
- func SetMask(m uint32)
- func SetSeparatorEnd(sep string)
- func SetSeparatorEndEnd(end string)
- func SetSeparatorStart(sep string)
- func Trace(format string, values ...any)
- func Unknown(format string, values ...any)
- func Warning(format string, values ...any)
- type Paper
Constants ¶
View Source
const ( MaskUNKNOWN = 1 << iota MaskDEBUG MaskTRACE MaskINFO MaskWARNING MaskERROR MaskFATAL MaskStd = MaskINFO | MaskWARNING | MaskERROR | MaskFATAL MaskAll = MaskUNKNOWN | MaskDEBUG | MaskTRACE | MaskINFO | MaskWARNING | MaskERROR | MaskFATAL )
View Source
const ( FlagDate = 1 << iota FlagTime FlagLongFile FlagShortFile FlagFunc FlagPrefix FlagSuffix FlagStd = FlagDate | FlagTime | FlagPrefix FlagAll = FlagDate | FlagTime | FlagShortFile | FlagFunc | FlagPrefix | FlagSuffix )
Variables ¶
This section is empty.
Functions ¶
func CloseStderr ¶ added in v0.2.1
func CloseStderr()
func CloseStdout ¶ added in v0.2.1
func CloseStdout()
func SetLogFile ¶
func SetSeparatorEnd ¶ added in v0.2.1
func SetSeparatorEnd(sep string)
func SetSeparatorEndEnd ¶ added in v0.2.1
func SetSeparatorEndEnd(end string)
func SetSeparatorStart ¶ added in v0.2.1
func SetSeparatorStart(sep string)
Types ¶
type Paper ¶ added in v0.2.1
func NewPaperFromFile ¶ added in v0.2.1
func (*Paper) WriteString ¶ added in v0.2.1
Click to show internal directories.
Click to hide internal directories.