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(opts Options)
- 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 Query(f Filter) (lines []string, err error)
- func QueryFromFile(filename string, f Filter) (ret []string, err error)
- func Recover()
- func Stat() string
- func Trace(v ...any)
- func Tracef(format string, v ...any)
- func Warning(v ...any)
- func Warningf(format string, v ...any)
- type Filter
- type Level
- type Log
- func (this *Log) Branch(prefix string) *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) Enable(enable bool) *Log
- 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) Init(opts Options) *Log
- func (this *Log) IsGloabl() bool
- func (this *Log) Print(level Level, v ...any)
- func (this *Log) Printf(level Level, format string, v ...any)
- func (this *Log) Query(f Filter) (lines []string, err error)
- func (this *Log) Recover()
- func (this *Log) Stat()
- func (this *Log) Trace(v ...any)
- func (this *Log) Tracef(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) WithLevel(level Level) *Log
- func (this *Log) WithLifetime() *Log
- func (this *Log) WithLifetimeDebug() *Log
- type Message
- type Options
- type Statistics
Constants ¶
View Source
const LevelDefault = LevelInfo
Variables ¶
This section is empty.
Functions ¶
func GenFilename ¶
func InitConsole ¶
func InitConsole()
func QueryFromFile ¶ added in v0.1.45
Types ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
func (*Log) WithLifetime ¶
func (*Log) WithLifetimeDebug ¶
type Message ¶
type Message struct { Time string GoID string Level string Text string // contains filtered or unexported fields }
func NewMessage ¶
Click to show internal directories.
Click to hide internal directories.