Documentation ¶
Index ¶
- func LoggerProvider() api.LoggerProvider
- func VerifyBasicLogging(t *testing.T, level api.Level, loggerFunc fn, loggerFuncf fnf, ...)
- func VerifyCriticalLoggings(t *testing.T, level api.Level, loggerFunc fn, loggerFuncf fnf, ...)
- type Log
- func (l *Log) Debug(args ...interface{})
- func (l *Log) Debugf(format string, args ...interface{})
- func (l *Log) Error(args ...interface{})
- func (l *Log) Errorf(format string, args ...interface{})
- func (l *Log) Fatal(args ...interface{})
- func (l *Log) Fatalf(format string, args ...interface{})
- func (l *Log) Info(args ...interface{})
- func (l *Log) Infof(format string, args ...interface{})
- func (l *Log) Panic(args ...interface{})
- func (l *Log) Panicf(format string, args ...interface{})
- func (l *Log) Warn(args ...interface{})
- func (l *Log) Warnf(format string, args ...interface{})
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggerProvider ¶
func LoggerProvider() api.LoggerProvider
LoggerProvider returns logging provider for SDK logger
Types ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log is a standard SDK logger implementation
func (*Log) Debug ¶
func (l *Log) Debug(args ...interface{})
Debug calls go log.Output. Arguments are handled in the manner of fmt.Print.
func (*Log) Error ¶
func (l *Log) Error(args ...interface{})
Error calls go log.Output. Arguments are handled in the manner of fmt.Print.
func (*Log) Fatal ¶
func (l *Log) Fatal(args ...interface{})
Fatal is CRITICAL log followed by a call to os.Exit(1).
func (*Log) Info ¶
func (l *Log) Info(args ...interface{})
Info calls go log.Output. Arguments are handled in the manner of fmt.Print.
func (*Log) Panic ¶
func (l *Log) Panic(args ...interface{})
Panic is CRITICAL log followed by a call to panic()
Click to show internal directories.
Click to hide internal directories.