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