Documentation
¶
Index ¶
- Constants
- func AppName() string
- func Close()
- func Critical(v ...any)
- func Criticalf(format string, v ...any)
- func Debug(v ...any)
- func Debugf(format string, v ...any)
- func Error(v ...any)
- func Errorf(format string, v ...any)
- func Format(level Level, v ...any) string
- func GenFilename(dir, app string) string
- func Info(v ...any)
- func Infof(format string, v ...any)
- func Init(conf Conf)
- func InitConsole()
- func InitDir(dirname string)
- func InitFile(filename string)
- func OpenFile(filename string, append bool) *os.File
- func Panicf(format string, v ...any)
- func Print(level Level, v ...any)
- func Printf(level Level, format string, v ...any)
- func Stat() string
- func Warning(v ...any)
- func Warningf(format string, v ...any)
- type Conf
- type Level
- type Log
- func (this *Log) Close()
- func (this *Log) Critical(v ...any)
- func (this *Log) Criticalf(format string, v ...any)
- func (this *Log) Debug(v ...any)
- func (this *Log) Debugf(format string, v ...any)
- func (this *Log) Error(v ...any)
- func (this *Log) Errorf(format string, v ...any)
- func (this *Log) Info(v ...any)
- func (this *Log) Infof(format string, v ...any)
- func (this *Log) Print(level Level, v ...any)
- func (this *Log) Printf(level Level, format string, v ...any)
- func (this *Log) Warning(v ...any)
- func (this *Log) Warningf(format string, v ...any)
- func (this *Log) WithID(id any) *Log
- func (this *Log) WithLifetime() *Log
- func (this *Log) WithLifetimeDebug() *Log
- type Message
- type Statistics
Constants ¶
View Source
const LevelDefault = LevelInfo
Variables ¶
This section is empty.
Functions ¶
func GenFilename ¶
func InitConsole ¶
func InitConsole()
Types ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
func (*Log) WithLifetime ¶
func (*Log) WithLifetimeDebug ¶
Click to show internal directories.
Click to hide internal directories.