[FIXED]: syslog Warnf call Notice() instead of Warning()

Use Warning() instead of Notice() and fix documentation for both
syslog and Windows event log.

Signed-off-by: Paolo Teti <paolo.teti@gmail.com>
This commit is contained in:
Paolo Teti
2021-01-03 15:15:32 +01:00
parent d56ba231d3
commit e148c540e2
2 changed files with 3 additions and 3 deletions

View File

@@ -102,9 +102,9 @@ func (l *SysLogger) Noticef(format string, v ...interface{}) {
l.writer.Notice(fmt.Sprintf(format, v...)) l.writer.Notice(fmt.Sprintf(format, v...))
} }
// Warnf logs a notice statement // Warnf logs a warning statement
func (l *SysLogger) Warnf(format string, v ...interface{}) { func (l *SysLogger) Warnf(format string, v ...interface{}) {
l.writer.Notice(fmt.Sprintf(format, v...)) l.writer.Warning(fmt.Sprintf(format, v...))
} }
// Fatalf logs a fatal error // Fatalf logs a fatal error

View File

@@ -80,7 +80,7 @@ func (l *SysLogger) Noticef(format string, v ...interface{}) {
l.writer.Info(1, formatMsg("NOTICE", format, v...)) l.writer.Info(1, formatMsg("NOTICE", format, v...))
} }
// Noticef logs a notice statement // Warnf logs a warning statement
func (l *SysLogger) Warnf(format string, v ...interface{}) { func (l *SysLogger) Warnf(format string, v ...interface{}) {
l.writer.Info(1, formatMsg("WARN", format, v...)) l.writer.Info(1, formatMsg("WARN", format, v...))
} }