// newLogger uses the log level provided in the configuration
// to create a new logrus logger and set fields on it to make
// it easy to use.
newLogger uses the log level provided in the configuration
to create a new logrus logger and set fields on it to make
it easy to use.
// newLogger uses the log level provided in the configuration // to create a new logrus logger and set fields on it to make // it easy to use .
func newLogger(app, level string) *logrus.Entry {
	logger := logrus.New()
	logger.Level = parseLogLevel(level)
	logEntry := logrus.NewEntry(logger).WithFields(logrus.Fields{
		"app": app,
	})
	logEntry.WithField("log-level", logger.Level).Info("log level set")
	return logEntry
}
func newLogger ( app , level string ) * logrus . Entry { logger := logrus . New ( ) logger . Level = parseLogLevel ( level ) logEntry := logrus . NewEntry ( logger ) . WithFields ( logrus . Fields { " " : app , } ) logEntry . WithField ( " " , logger . Level ) . Info ( " " ) return logEntry }
newLogger uses the log level provided in the configuration
to create a new logrus logger and set fields on it to make
it easy to use.
newLogger uses the log level provided in the configuration to create a new logrus logger and set fields on it to make it easy to use .