portable mode: add Azure Blob support

This commit is contained in:
Nicola Murino
2020-10-25 21:42:43 +01:00
parent 9b49f63a97
commit f2acde789d
5 changed files with 62 additions and 8 deletions

View File

@@ -60,7 +60,7 @@ func (s *Service) Start() error {
logger.InitLogger(s.LogFilePath, s.LogMaxSize, s.LogMaxBackups, s.LogMaxAge, s.LogCompress, logLevel)
if s.PortableMode == 1 {
logger.EnableConsoleLogger(logLevel)
if len(s.LogFilePath) == 0 {
if s.LogFilePath == "" {
logger.DisableLogger()
}
}