package
Version:
v0.9.0
Opens a new window with list of versions in this module.
Published: Apr 11, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package log is a global internal logger
DEPRECATED: this is frozen package, use github.com/chnkenc/go-micro/logger
-
func Debug(v ...interface{})
-
func Debugf(format string, v ...interface{})
-
func Error(v ...interface{})
-
func Errorf(format string, v ...interface{})
-
func Fatal(v ...interface{})
-
func Fatalf(format string, v ...interface{})
-
func GetLogger() dlog.Log
-
func Info(v ...interface{})
-
func Infof(format string, v ...interface{})
-
func Log(v ...interface{})
-
func Logf(format string, v ...interface{})
-
func Name(name string)
-
func SetLevel(l Level)
-
func SetLogger(l dlog.Log)
-
func SetPrefix(p string)
-
func Trace(v ...interface{})
-
func Tracef(format string, v ...interface{})
-
func Warn(v ...interface{})
-
func Warnf(format string, v ...interface{})
-
func WithLevel(l Level, v ...interface{})
-
func WithLevelf(l Level, format string, v ...interface{})
-
type Level
func Debug(v ...interface{})
Debug provides debug level logging
func Debugf(format string, v ...interface{})
Debugf provides debug level logging
func Error(v ...interface{})
Error provides warn level logging
func Errorf(format string, v ...interface{})
Errorf provides warn level logging
func Fatal(v ...interface{})
Fatal logs with Log and then exits with os.Exit(1)
func Fatalf(format string, v ...interface{})
Fatalf logs with Logf and then exits with os.Exit(1)
GetLogger returns the local logger
func Info(v ...interface{})
Info provides info level logging
func Infof(format string, v ...interface{})
Infof provides info level logging
func Log(v ...interface{})
Log makes use of github.com/micro/debug/log
func Logf(format string, v ...interface{})
Logf makes use of github.com/micro/debug/log
SetLevel sets the log level
SetLogger sets the local logger
Set a prefix for the logger
func Trace(v ...interface{})
Trace provides trace level logging
func Tracef(format string, v ...interface{})
Tracef provides trace level logging
func Warn(v ...interface{})
Warn provides warn level logging
func Warnf(format string, v ...interface{})
Warnf provides warn level logging
func WithLevel(l Level, v ...interface{})
WithLevel logs with the level specified
func WithLevelf(l Level, format string, v ...interface{})
WithLevel logs with the level specified
level is a log level
const (
LevelFatal Level = iota
LevelError
LevelWarn
LevelInfo
LevelDebug
LevelTrace
)
GetLevel returns the current level
Source Files
¶
Click to show internal directories.
Click to hide internal directories.