mirror of
https://github.com/linka-cloud/grpc.git
synced 2024-11-24 20:06:25 +00:00
logger: add C as From alias
This commit is contained in:
parent
aaf2aa3964
commit
819b3c9ce6
@ -18,6 +18,8 @@ func init() {
|
|||||||
defaultLogger = &logger{fl: logrus.New()}
|
defaultLogger = &logger{fl: logrus.New()}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var C = From
|
||||||
|
|
||||||
func SetDefault(logger Logger) {
|
func SetDefault(logger Logger) {
|
||||||
mu.Lock()
|
mu.Lock()
|
||||||
defer mu.Unlock()
|
defer mu.Unlock()
|
||||||
|
Loading…
Reference in New Issue
Block a user