mirror of
https://github.com/MontFerret/ferret.git
synced 2025-11-29 22:17:29 +02:00
Reorganized CLI
This commit is contained in:
14
cli/logger.go
Normal file
14
cli/logger.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package cli
|
||||
|
||||
import (
|
||||
"github.com/natefinch/lumberjack"
|
||||
)
|
||||
|
||||
func NewLogger() *lumberjack.Logger {
|
||||
l := &lumberjack.Logger{
|
||||
Filename: "./ferret.log",
|
||||
MaxSize: 100,
|
||||
}
|
||||
|
||||
return l
|
||||
}
|
||||
Reference in New Issue
Block a user