mirror of
https://github.com/taigrr/log-socket
synced 2026-03-20 17:12:24 -07:00
Add Default() func
This commit is contained in:
@@ -7,6 +7,10 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
func Default() *Logger {
|
||||
return &Logger{FileInfoDepth: 0}
|
||||
}
|
||||
|
||||
func (l *Logger) SetInfoDepth(depth int) {
|
||||
l.FileInfoDepth = depth
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user