mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-02-26 16:57:08 +00:00
chore: add singMux inbound test for shadowsocks/trojan/vless/vmess
This commit is contained in:
13
log/sing.go
13
log/sing.go
@@ -65,4 +65,17 @@ func (l singLogger) Panic(args ...any) {
|
||||
Fatalln(fmt.Sprint(args...))
|
||||
}
|
||||
|
||||
type singInfoToDebugLogger struct {
|
||||
singLogger
|
||||
}
|
||||
|
||||
func (l singInfoToDebugLogger) InfoContext(ctx context.Context, args ...any) {
|
||||
Debugln(fmt.Sprint(args...))
|
||||
}
|
||||
|
||||
func (l singInfoToDebugLogger) Info(args ...any) {
|
||||
Debugln(fmt.Sprint(args...))
|
||||
}
|
||||
|
||||
var SingLogger L.ContextLogger = singLogger{}
|
||||
var SingInfoToDebugLogger L.ContextLogger = singInfoToDebugLogger{}
|
||||
|
||||
Reference in New Issue
Block a user