mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 21:51:23 +08:00
42 lines
680 B
Go
42 lines
680 B
Go
|
package sing
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
"github.com/Dreamacro/clash/log"
|
||
|
|
||
|
L "github.com/sagernet/sing/common/logger"
|
||
|
)
|
||
|
|
||
|
type logger struct{}
|
||
|
|
||
|
func (l logger) Trace(args ...any) {
|
||
|
log.Debugln(fmt.Sprint(args...))
|
||
|
}
|
||
|
|
||
|
func (l logger) Debug(args ...any) {
|
||
|
log.Debugln(fmt.Sprint(args...))
|
||
|
}
|
||
|
|
||
|
func (l logger) Info(args ...any) {
|
||
|
log.Infoln(fmt.Sprint(args...))
|
||
|
}
|
||
|
|
||
|
func (l logger) Warn(args ...any) {
|
||
|
log.Warnln(fmt.Sprint(args...))
|
||
|
}
|
||
|
|
||
|
func (l logger) Error(args ...any) {
|
||
|
log.Errorln(fmt.Sprint(args...))
|
||
|
}
|
||
|
|
||
|
func (l logger) Fatal(args ...any) {
|
||
|
log.Fatalln(fmt.Sprint(args...))
|
||
|
}
|
||
|
|
||
|
func (l logger) Panic(args ...any) {
|
||
|
log.Fatalln(fmt.Sprint(args...))
|
||
|
}
|
||
|
|
||
|
var Logger L.Logger = logger{}
|