code: func InitializeLogger(logJSON bool, lvl string) {
  	logger = logrus.New()
  
  	logLevel, err := logrus.ParseLevel(lvl)
  	if err != nil {
  		logrus.Warnf("unable to parse log level configuration error: %q", err)
  		logLevel = logrus.ErrorLevel // reset to ERROR
  	}
  	logrus.SetLevel(logLevel)
  	logger.Level = logLevel
  
  	if logJSON {
  		customFormatter := new(logrus.JSONFormatter)
  		customFormatter.TimestampFormat = "2006-01-02 15:04:05"
  
  		logrus.SetFormatter(customFormatter)
  		customFormatter.DisableTimestamp = false
  		logger.Formatter = customFormatter
  	} else {
  		customFormatter := new(logrus.TextFormatter)
  		customFormatter.FullTimestamp = true
  		customFormatter.TimestampFormat = "2006-01-02 15:04:05"
  		logrus.SetFormatter(customFormatter)
  		logger.Formatter = customFormatter
  	}
  
  	logger.Out = os.Stdout
  }
docs: // InitializeLogger creates a default logger with the given ouput format and log level