mirror of https://bitbucket.org/ausocean/av.git
Added newlines to logger.New
This commit is contained in:
parent
9d2fd53335
commit
93f7d5849e
|
@ -167,15 +167,19 @@ func handleFlags() config.Config {
|
|||
}
|
||||
|
||||
netLogger = netlogger.New()
|
||||
log = logger.New(cfg.LogLevel, io.MultiWriter(
|
||||
&lumberjack.Logger{
|
||||
Filename: filepath.Join(*logPathPtr, "netsender.log"),
|
||||
MaxSize: 500, // MB
|
||||
MaxBackups: 10,
|
||||
MaxAge: 28, // days
|
||||
},
|
||||
netLogger,
|
||||
), true)
|
||||
log = logger.New(
|
||||
cfg.LogLevel,
|
||||
io.MultiWriter(
|
||||
&lumberjack.Logger{
|
||||
Filename: filepath.Join(*logPathPtr, "netsender.log"),
|
||||
MaxSize: 500, // MB
|
||||
MaxBackups: 10,
|
||||
MaxAge: 28, // days
|
||||
},
|
||||
netLogger,
|
||||
),
|
||||
true,
|
||||
)
|
||||
|
||||
cfg.Logger = log
|
||||
|
||||
|
|
Loading…
Reference in New Issue