mirror of
https://github.com/taigrr/log-socket
synced 2025-01-18 04:53:14 -08:00
Add Default() func
This commit is contained in:
parent
0fa4de7961
commit
80b80758de
@ -7,6 +7,10 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
func Default() *Logger {
|
||||
return &Logger{FileInfoDepth: 0}
|
||||
}
|
||||
|
||||
func (l *Logger) SetInfoDepth(depth int) {
|
||||
l.FileInfoDepth = depth
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user