diff options
| author | Ho3ein <ho3ein.sanaei@gmail.com> | 2023-06-16 17:55:33 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-16 17:55:33 +0300 |
| commit | 5188d516e3a13e0cf4c04f8af653007983b16cb5 (patch) | |
| tree | 7b2ab0097680e00cf74eb8467dddf3598eda7ba1 /logger | |
| parent | 97925eeebe30c2f70bad6b6c240728034638842f (diff) | |
new - loglevel (#612)
Diffstat (limited to 'logger')
| -rw-r--r-- | logger/logger.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/logger/logger.go b/logger/logger.go index f5b0a878..6e49c850 100644 --- a/logger/logger.go +++ b/logger/logger.go @@ -84,3 +84,15 @@ func Errorf(format string, args ...interface{}) { logger.Errorf(format, args...) } } + +func Notice(args ...interface{}) { + if logger != nil { + logger.Notice(args...) + } +} + +func Noticef(format string, args ...interface{}) { + if logger != nil { + logger.Noticef(format, args...) + } +} |
