enable changing debug and prefix by outside callers

This commit is contained in:
2021-03-27 10:29:41 -04:00
parent 80985d1084
commit 0887f0c76e
6 changed files with 11 additions and 11 deletions

View File

@@ -113,7 +113,7 @@ func GetLogger(enableDebug bool, prefix string, logpaths ...string) (logger Logg
logger.Setup()
if prefix != "\x00" {
logger.setPrefix(prefix)
logger.SetPrefix(prefix)
}
logger.Info("logger initialized of type %T with prefix %v", logger, logger.GetPrefix())