summaryrefslogtreecommitdiff
path: root/vendor/codeberg.org/gruf/go-logger/default.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-11-27 15:26:58 +0100
committerLibravatar GitHub <noreply@github.com>2021-11-27 15:26:58 +0100
commit182b4eea73881c611a0f519576aa6ad2aa6799c2 (patch)
tree230fac469690fcee8797b13585e739be148d4789 /vendor/codeberg.org/gruf/go-logger/default.go
parentRequire confirmed email when checking oauth token (#332) (diff)
downloadgotosocial-182b4eea73881c611a0f519576aa6ad2aa6799c2.tar.xz
Update dependencies (#333)
Diffstat (limited to 'vendor/codeberg.org/gruf/go-logger/default.go')
-rw-r--r--vendor/codeberg.org/gruf/go-logger/default.go30
1 files changed, 15 insertions, 15 deletions
diff --git a/vendor/codeberg.org/gruf/go-logger/default.go b/vendor/codeberg.org/gruf/go-logger/default.go
index e2932e733..0da1f6a66 100644
--- a/vendor/codeberg.org/gruf/go-logger/default.go
+++ b/vendor/codeberg.org/gruf/go-logger/default.go
@@ -10,78 +10,78 @@ var (
instanceOnce = sync.Once{}
)
-// Default returns the default Logger instance
+// Default returns the default Logger instance.
func Default() *Logger {
instanceOnce.Do(func() { instance = New(os.Stdout) })
return instance
}
-// Debug prints the provided arguments with the debug prefix to the global Logger instance
+// Debug prints the provided arguments with the debug prefix to the global Logger instance.
func Debug(a ...interface{}) {
Default().Debug(a...)
}
-// Debugf prints the provided format string and arguments with the debug prefix to the global Logger instance
+// Debugf prints the provided format string and arguments with the debug prefix to the global Logger instance.
func Debugf(s string, a ...interface{}) {
Default().Debugf(s, a...)
}
-// Info prints the provided arguments with the info prefix to the global Logger instance
+// Info prints the provided arguments with the info prefix to the global Logger instance.
func Info(a ...interface{}) {
Default().Info(a...)
}
-// Infof prints the provided format string and arguments with the info prefix to the global Logger instance
+// Infof prints the provided format string and arguments with the info prefix to the global Logger instance.
func Infof(s string, a ...interface{}) {
Default().Infof(s, a...)
}
-// Warn prints the provided arguments with the warn prefix to the global Logger instance
+// Warn prints the provided arguments with the warn prefix to the global Logger instance.
func Warn(a ...interface{}) {
Default().Warn(a...)
}
-// Warnf prints the provided format string and arguments with the warn prefix to the global Logger instance
+// Warnf prints the provided format string and arguments with the warn prefix to the global Logger instance.
func Warnf(s string, a ...interface{}) {
Default().Warnf(s, a...)
}
-// Error prints the provided arguments with the error prefix to the global Logger instance
+// Error prints the provided arguments with the error prefix to the global Logger instance.
func Error(a ...interface{}) {
Default().Error(a...)
}
-// Errorf prints the provided format string and arguments with the error prefix to the global Logger instance
+// Errorf prints the provided format string and arguments with the error prefix to the global Logger instance.
func Errorf(s string, a ...interface{}) {
Default().Errorf(s, a...)
}
-// Fatal prints the provided arguments with the fatal prefix to the global Logger instance before exiting the program with os.Exit(1)
+// Fatal prints the provided arguments with the fatal prefix to the global Logger instance before exiting the program with os.Exit(1).
func Fatal(a ...interface{}) {
Default().Fatal(a...)
}
-// Fatalf prints the provided format string and arguments with the fatal prefix to the global Logger instance before exiting the program with os.Exit(1)
+// Fatalf prints the provided format string and arguments with the fatal prefix to the global Logger instance before exiting the program with os.Exit(1).
func Fatalf(s string, a ...interface{}) {
Default().Fatalf(s, a...)
}
-// Log prints the provided arguments with the supplied log level to the global Logger instance
+// Log prints the provided arguments with the supplied log level to the global Logger instance.
func Log(lvl LEVEL, a ...interface{}) {
Default().Log(lvl, a...)
}
-// Logf prints the provided format string and arguments with the supplied log level to the global Logger instance
+// Logf prints the provided format string and arguments with the supplied log level to the global Logger instance.
func Logf(lvl LEVEL, s string, a ...interface{}) {
Default().Logf(lvl, s, a...)
}
-// Print simply prints provided arguments to the global Logger instance
+// Print simply prints provided arguments to the global Logger instance.
func Print(a ...interface{}) {
Default().Print(a...)
}
-// Printf simply prints provided the provided format string and arguments to the global Logger instance
+// Printf simply prints provided the provided format string and arguments to the global Logger instance.
func Printf(s string, a ...interface{}) {
Default().Printf(s, a...)
}