Documentation
¶
Index ¶
- Constants
- func Custom(category string, message string)
- func Custome(category string, err error)
- func Customf(category string, format string, args ...any)
- func Error(err error)
- func Errorf(format string, args ...any)
- func Errors(message string)
- func Message(message string)
- func Messagef(format string, args ...any)
- func Name() string
- func Panic(err error)
- func Panicf(format string, args ...any)
- func Panics(message string)
- func Warning(message string)
- func Warningf(format string, args ...any)
- type Category
- type Formatter
- type Log
- type Module
- type Record
Constants ¶
View Source
const CODE_LOGGER_MODULE = "MODULE"
View Source
const LOG_PATH = "./.log"
View Source
const MODULE_CONSOLE = "CONSOLE"
View Source
const MODULE_FILE = "FILE"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Log ¶
type Log interface {
Name() string
Metadata() string
Records() []Record
Custom(string, string) *Record
Custome(string, error) *Record
Customf(string, string, ...any) *Record
Message(string) *Record
Messagef(string, ...any) *Record
Warning(string) *Record
Warningf(string, ...any) *Record
Error(error) *Record
Errors(string) *Record
Errorf(string, ...any) *Record
Panic(error)
Panics(string)
Panicf(string, ...any)
}
Click to show internal directories.
Click to hide internal directories.