Documentation
¶
Index ¶
- Constants
- func GetEnvLOGLEVEL() int
- func GetLOGLEVEL(loglvl string) (retval int)
- type ILOG
- type LOG
- func (l *LOG) ConfigureFileAndConsoleOutput()
- func (l *LOG) Debug(format string, args ...any)
- func (l *LOG) Error(format string, args ...any)
- func (l *LOG) Fatal(format string, args ...any)
- func (l *LOG) GetLOGLEVEL() int
- func (l *LOG) IfDebug() bool
- func (l *LOG) Info(format string, args ...any)
- func (l *LOG) LogClose()
- func (l *LOG) LogStart(filename string)
- func (l *LOG) SetLOGLEVEL(lvl int)
- func (l *LOG) SetOutput(writer io.Writer)
- func (l *LOG) Warn(format string, args ...any)
Constants ¶
View Source
const ( INFO = 0x1 WARN = 0x2 DEBUG = 0x3 )
Variables ¶
This section is empty.
Functions ¶
func GetEnvLOGLEVEL ¶
func GetEnvLOGLEVEL() int
func GetLOGLEVEL ¶
Types ¶
type ILOG ¶
type LOG ¶
func (*LOG) ConfigureFileAndConsoleOutput ¶
func (l *LOG) ConfigureFileAndConsoleOutput()
ConfigureFileAndConsoleOutput configures the logs to write to both a file and console.
func (*LOG) GetLOGLEVEL ¶
func (*LOG) SetLOGLEVEL ¶
Click to show internal directories.
Click to hide internal directories.