diff --git a/logger/logger.go b/logger/logger.go index 220b4fa..828d938 100644 --- a/logger/logger.go +++ b/logger/logger.go @@ -199,6 +199,32 @@ func Infof(format string, args ...interface{}) { createLog(e) } +// Info prints out logs on info level +func Noticef(args ...interface{}) { + output := fmt.Sprint(args...) + e := Entry{ + Timestamp: time.Now(), + Output: output, + File: fileInfo(2), + Level: "NOTICE", + level: LNotice, + } + createLog(e) +} + +// Formatted print for Info +func Noticef(format string, args ...interface{}) { + output := fmt.Sprintf(format, args...) + e := Entry{ + Timestamp: time.Now(), + Output: output, + File: fileInfo(2), + Level: "NOTICE", + level: LNotice, + } + createLog(e) +} + // Warn prints out logs on warn level func Warn(args ...interface{}) { output := fmt.Sprint(args...) diff --git a/logger/types.go b/logger/types.go index 2dbf468..18f897b 100644 --- a/logger/types.go +++ b/logger/types.go @@ -9,6 +9,7 @@ const ( LTrace Level = iota LDebug LInfo + LNotice LWarn LError LPanic