mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-09-16 13:52:32 +00:00
21 lines
472 B
Go
21 lines
472 B
Go
package system
|
|
|
|
import "github.com/Dreamacro/clash/log"
|
|
|
|
type logger struct{}
|
|
|
|
func (l *logger) D(format string, args ...interface{}) {
|
|
log.Debugln("[TUN] "+format, args...)
|
|
}
|
|
|
|
func (l *logger) I(format string, args ...interface{}) {
|
|
log.Infoln("[TUN] "+format, args...)
|
|
}
|
|
|
|
func (l *logger) W(format string, args ...interface{}) {
|
|
log.Warnln("[TUN] "+format, args...)
|
|
}
|
|
|
|
func (l *logger) E(format string, args ...interface{}) {
|
|
log.Errorln("[TUN] "+format, args...)
|
|
}
|