feat: init js-core
This commit is contained in:
18
component/js/log.go
Normal file
18
component/js/log.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package js
|
||||
|
||||
import "github.com/Dreamacro/clash/log"
|
||||
|
||||
type JsLog struct {
|
||||
}
|
||||
|
||||
func (j JsLog) Log(s string) {
|
||||
log.Infoln("[JS] %s", s)
|
||||
}
|
||||
|
||||
func (j JsLog) Warn(s string) {
|
||||
log.Warnln("[JS] %s", s)
|
||||
}
|
||||
|
||||
func (j JsLog) Error(s string) {
|
||||
log.Errorln("[JS] %s", s)
|
||||
}
|
||||
Reference in New Issue
Block a user