Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(msg interface{}, args ...interface{})
- func Error(msg interface{}, args ...interface{})
- func Fatal(msg interface{}, args ...interface{})
- func Info(msg interface{}, args ...interface{})
- func Log(msg interface{}, args ...interface{})
- func SetAppLogger(l *Logger)
- func Success(msg interface{}, args ...interface{})
- type Config
- type Logger
- func (l *Logger) Debug(msg interface{}, args ...interface{})
- func (l *Logger) Error(msg interface{}, args ...interface{})
- func (l *Logger) Fatal(msg interface{}, args ...interface{})
- func (l *Logger) Info(msg interface{}, args ...interface{})
- func (l *Logger) Log(msg interface{}, args ...interface{})
- func (l *Logger) Success(msg interface{}, args ...interface{})
Constants ¶
Variables ¶
View Source
var LevelNames = map[slog.Leveler]string{ LevelFatal: "FATAL", LevelSuccess: "SUCCESS", LevelLog: "LOG", }
View Source
var Verbose = 0
Functions ¶
func SetAppLogger ¶
func SetAppLogger(l *Logger)
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func GetAppLogger ¶
func GetAppLogger() *Logger
func NewLoggerByName ¶
Click to show internal directories.
Click to hide internal directories.