Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/logger
diff options
context:
space:
mode:
authorHo3ein <ho3ein.sanaei@gmail.com>2023-06-16 17:55:33 +0300
committerGitHub <noreply@github.com>2023-06-16 17:55:33 +0300
commit5188d516e3a13e0cf4c04f8af653007983b16cb5 (patch)
tree7b2ab0097680e00cf74eb8467dddf3598eda7ba1 /logger
parent97925eeebe30c2f70bad6b6c240728034638842f (diff)
new - loglevel (#612)
Diffstat (limited to 'logger')
-rw-r--r--logger/logger.go12
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...)
+ }
+}