package
Version:
v0.0.0-...-07f0968
Opens a new window with list of versions in this module.
Published: Nov 2, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
LevelDebug level = "DEBUG"
LevelInfo level = "INFO"
LevelWarning level = "WARNING"
LevelStats level = "STATS"
LevelError level = "ERROR"
LevelFatal level = "FATAL"
)
type Entry struct {
Time time.Time `json:"time"`
Level level `json:"level"`
Message string `json:"message"`
Data interface{} `json:"data"`
StackTrace string `json:"stackTrace"`
}
type Log interface {
Debug(format string, args ...interface{})
Info(format string, args ...interface{})
Warning(format string, args ...interface{})
Stats(data interface{})
ErrorOn(err interface{})
FatalOn(err interface{})
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.