aboutsummaryrefslogtreecommitdiff
path: root/std.go
diff options
context:
space:
mode:
authorFelix Hanley <felix@userspace.com.au>2020-05-20 01:35:50 +0000
committerFelix Hanley <felix@userspace.com.au>2020-05-20 01:36:03 +0000
commit21b31fdacf93bd5bb54937fb7c25a73b61205344 (patch)
treef1c50ff4a8dab9bd6e86ed3a8402ac0b1ef34ba0 /std.go
parent0b93ba86bf1b495ebb765a6cdca20a121ac1e9c7 (diff)
downloadlogger-21b31fdacf93bd5bb54937fb7c25a73b61205344.tar.gz
logger-21b31fdacf93bd5bb54937fb7c25a73b61205344.tar.bz2
Reduce levels to debug and not debug
Diffstat (limited to 'std.go')
-rw-r--r--std.go26
1 files changed, 3 insertions, 23 deletions
diff --git a/std.go b/std.go
index 0bfe88e..cf70e51 100644
--- a/std.go
+++ b/std.go
@@ -7,39 +7,19 @@ import (
var std *Logger
func init() {
- std, _ = New(Level(message.WARN))
+ std, _ = New()
}
-// Error logs an error message.
-func Error(msg string, args ...interface{}) { std.Error(msg, args...) }
-
-// Warn logs an information message.
-func Warn(msg string, args ...interface{}) { std.Warn(msg, args...) }
-
// Info logs an information message.
-func Info(msg string, args ...interface{}) { std.Info(msg, args...) }
+func Info(args ...interface{}) { std.Info(args...) }
// Debug logs a debug message.
-func Debug(msg string, args ...interface{}) { std.Debug(msg, args...) }
-
-// IsWarn determines the info status for a logger instance.
-// Use this to conditionally execute blocks of code depending on the log verbosity.
-func IsWarn() bool { return std.IsWarn() }
-
-// IsInfo determines the info status for a logger instance.
-// Use this to conditionally execute blocks of code depending on the log verbosity.
-func IsInfo() bool { return std.IsInfo() }
+func Debug(args ...interface{}) { std.Debug(args...) }
// IsDebug determines the debug status for a logger instance.
// Use this to conditionally execute blocks of code depending on the log verbosity.
func IsDebug() bool { return std.IsDebug() }
-// SetLevelAsString enables changing the minimum level for a logger instance.
-func SetLevelAsString(lvl string) { std.SetLevelAsString(lvl) }
-
-// SetLevel enables changing the minimum level for a logger instance.
-func SetLevel(lvl message.Level) { std.SetLevel(lvl) }
-
// Field enables changing the default fields for a logger instance.
func Field(k string, v interface{}) *Logger { return std.Field(k, v) }