Add support for logging to file

This commit is contained in:
Daniele Rondina
2020-01-03 15:22:55 +01:00
parent f28e8deb96
commit c284d3e4bf
2 changed files with 64 additions and 10 deletions

View File

@@ -68,7 +68,11 @@ func LoadConfig(c *config.LuetConfig) error {
NewSpinner()
if c.GetLogging().Path != "" {
// TODO: Init logrus, etc.
// Init zap logger
err = ZapLogger()
if err != nil {
return err
}
}
// Load repositories