diff --git a/Lotus/Logging.go b/Lotus/Logging.go index c224802..a5df7c5 100644 --- a/Lotus/Logging.go +++ b/Lotus/Logging.go @@ -24,8 +24,16 @@ func checkIfLogFolderExists(){ var logger = createLogger(logrus.WarnLevel) -func Logger(section string) *logrus.Entry { - return logger.WithField("section", section) + +func DetailedLogger(name string, section string) *logrus.Entry { + return logger.WithFields(logrus.Fields{ + "loggerName": name, + "section": section, + }) +} + +func Logger(name string) *logrus.Entry { + return logger.WithField("loggerName", name) } func createLogger(logLevel logrus.Level) *logrus.Logger{