mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-02 11:38:30 -04:00
0cdb065739
binary to mount at runtime, -c or DMS_SHELL_DIR overrides required to explicitly override embedded configuration
33 lines
1.1 KiB
Go
33 lines
1.1 KiB
Go
package log
|
|
|
|
import (
|
|
danklog "github.com/AvengeMedia/dankgo/log"
|
|
)
|
|
|
|
type Logger = danklog.Logger
|
|
|
|
func init() {
|
|
danklog.SetEnvPrefix("DMS")
|
|
}
|
|
|
|
func GetLogger() *Logger { return danklog.GetLogger() }
|
|
|
|
func GetQtLoggingRules() string { return danklog.GetQtLoggingRules() }
|
|
|
|
func SetLevel(level string) { danklog.SetLevel(level) }
|
|
|
|
func SetLogFile(path string) error { return danklog.SetLogFile(path) }
|
|
|
|
func ApplyEnvOverrides() { danklog.ApplyEnvOverrides() }
|
|
|
|
func Debug(msg any, keyvals ...any) { danklog.Debug(msg, keyvals...) }
|
|
func Debugf(format string, v ...any) { danklog.Debugf(format, v...) }
|
|
func Info(msg any, keyvals ...any) { danklog.Info(msg, keyvals...) }
|
|
func Infof(format string, v ...any) { danklog.Infof(format, v...) }
|
|
func Warn(msg any, keyvals ...any) { danklog.Warn(msg, keyvals...) }
|
|
func Warnf(format string, v ...any) { danklog.Warnf(format, v...) }
|
|
func Error(msg any, keyvals ...any) { danklog.Error(msg, keyvals...) }
|
|
func Errorf(format string, v ...any) { danklog.Errorf(format, v...) }
|
|
func Fatal(msg any, keyvals ...any) { danklog.Fatal(msg, keyvals...) }
|
|
func Fatalf(format string, v ...any) { danklog.Fatalf(format, v...) }
|