mirror of
https://github.com/fatedier/frp.git
synced 2025-01-22 17:42:09 +00:00
update log module
This commit is contained in:
parent
1b70f0c4fd
commit
5360febd72
4
Godeps/Godeps.json
generated
4
Godeps/Godeps.json
generated
@ -18,8 +18,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/fatedier/beego/logs",
|
"ImportPath": "github.com/fatedier/beego/logs",
|
||||||
"Comment": "v1.7.2-71-gc12472d",
|
"Comment": "v1.7.2-72-gf73c369",
|
||||||
"Rev": "c12472d5e4365d2927f5fba8e9260a3e3d51fa52"
|
"Rev": "f73c3692bbd70a83728cb59b2c0423ff95e4ecea"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/golang/snappy",
|
"ImportPath": "github.com/golang/snappy",
|
||||||
|
10
vendor/github.com/fatedier/beego/logs/log.go
generated
vendored
10
vendor/github.com/fatedier/beego/logs/log.go
generated
vendored
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2014 beego Author. All Rights Reserved.
|
// Copyright 2012 beego Author. All Rights Reserved.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
@ -55,6 +55,7 @@ const (
|
|||||||
LevelNotice
|
LevelNotice
|
||||||
LevelInformational
|
LevelInformational
|
||||||
LevelDebug
|
LevelDebug
|
||||||
|
LevelTrace
|
||||||
)
|
)
|
||||||
|
|
||||||
// levelLogLogger is defined to implement log.Logger
|
// levelLogLogger is defined to implement log.Logger
|
||||||
@ -77,7 +78,6 @@ const (
|
|||||||
// Legacy log level constants to ensure backwards compatibility.
|
// Legacy log level constants to ensure backwards compatibility.
|
||||||
const (
|
const (
|
||||||
LevelInfo = LevelInformational
|
LevelInfo = LevelInformational
|
||||||
LevelTrace = LevelDebug
|
|
||||||
LevelWarn = LevelWarning
|
LevelWarn = LevelWarning
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ type Logger interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var adapters = make(map[string]newLoggerFunc)
|
var adapters = make(map[string]newLoggerFunc)
|
||||||
var levelPrefix = [LevelDebug + 1]string{"[M] ", "[A] ", "[C] ", "[E] ", "[W] ", "[N] ", "[I] ", "[D] "}
|
var levelPrefix = [LevelTrace + 1]string{"[M] ", "[A] ", "[C] ", "[E] ", "[W] ", "[N] ", "[I] ", "[D] ", "[T] "}
|
||||||
|
|
||||||
// Register makes a log provide available by the provided name.
|
// Register makes a log provide available by the provided name.
|
||||||
// If Register is called twice with the same name or if driver is nil,
|
// If Register is called twice with the same name or if driver is nil,
|
||||||
@ -440,10 +440,10 @@ func (bl *BeeLogger) Info(format string, v ...interface{}) {
|
|||||||
// Trace Log TRACE level message.
|
// Trace Log TRACE level message.
|
||||||
// compatibility alias for Debug()
|
// compatibility alias for Debug()
|
||||||
func (bl *BeeLogger) Trace(format string, v ...interface{}) {
|
func (bl *BeeLogger) Trace(format string, v ...interface{}) {
|
||||||
if LevelDebug > bl.level {
|
if LevelTrace > bl.level {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
bl.writeMsg(LevelDebug, format, v...)
|
bl.writeMsg(LevelTrace, format, v...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Flush flush all chan data.
|
// Flush flush all chan data.
|
||||||
|
Loading…
Reference in New Issue
Block a user