package log
import "github.com/uber/jaeger-client-go/log"
Index ¶
- Variables
- type BytesBufferLogger
- func (l *BytesBufferLogger) Error(msg string)
- func (l *BytesBufferLogger) Flush()
- func (l *BytesBufferLogger) Infof(msg string, args ...interface{})
- func (l *BytesBufferLogger) String() string
- type Logger
Variables ¶
var NullLogger = &nullLogger{}
NullLogger is implementation of the Logger interface that is no-op
var StdLogger = &stdLogger{}
StdLogger is implementation of the Logger interface that delegates to default `log` package
Types ¶
type BytesBufferLogger ¶
type BytesBufferLogger struct {
// contains filtered or unexported fields
}
BytesBufferLogger implements Logger backed by a bytes.Buffer.
func (*BytesBufferLogger) Error ¶
func (l *BytesBufferLogger) Error(msg string)
Error implements Logger.
func (*BytesBufferLogger) Flush ¶
func (l *BytesBufferLogger) Flush()
Flush empties the underlying buffer.
func (*BytesBufferLogger) Infof ¶
func (l *BytesBufferLogger) Infof(msg string, args ...interface{})
Infof implements Logger.
func (*BytesBufferLogger) String ¶
func (l *BytesBufferLogger) String() string
String returns string representation of the underlying buffer.
type Logger ¶
type Logger interface { // Error logs a message at error priority Error(msg string) // Infof logs a message at info priority Infof(msg string, args ...interface{}) }
Logger provides an abstract interface for logging from Reporters. Applications can provide their own implementation of this interface to adapt reporters logging to whatever logging library they prefer (stdlib log, logrus, go-logging, etc).
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
log/zap |
- Version
- v2.18.1+incompatible
- Published
- Sep 16, 2019
- Platform
- darwin/amd64
- Imports
- 4 packages
- Last checked
- 27 minutes ago –
Tools for package owners.