mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-14 11:23:02 +02:00
15 lines
185 B
Go
15 lines
185 B
Go
|
package cli
|
||
|
|
||
|
import (
|
||
|
"github.com/natefinch/lumberjack"
|
||
|
)
|
||
|
|
||
|
func NewLogger() *lumberjack.Logger {
|
||
|
l := &lumberjack.Logger{
|
||
|
Filename: "./ferret.log",
|
||
|
MaxSize: 100,
|
||
|
}
|
||
|
|
||
|
return l
|
||
|
}
|