Documentation ¶
Index ¶
Constants ¶
View Source
const StackTraceBufferSize = 1024 * 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONRedacter ¶
type JSONRedacter struct {
// contains filtered or unexported fields
}
func NewJSONRedacter ¶
func NewJSONRedacter(keyPatterns []string, valuePatterns []string) (*JSONRedacter, error)
func (JSONRedacter) Redact ¶
func (r JSONRedacter) Redact(data []byte) []byte
type LogFormat ¶
type Logger ¶
type ReconfigurableSink ¶
type ReconfigurableSink struct {
// contains filtered or unexported fields
}
func NewReconfigurableSink ¶
func NewReconfigurableSink(sink Sink, initialMinLogLevel LogLevel) *ReconfigurableSink
func (*ReconfigurableSink) GetMinLevel ¶
func (sink *ReconfigurableSink) GetMinLevel() LogLevel
func (*ReconfigurableSink) Log ¶
func (sink *ReconfigurableSink) Log(log LogFormat)
func (*ReconfigurableSink) SetMinLevel ¶
func (sink *ReconfigurableSink) SetMinLevel(level LogLevel)
type Sink ¶
type Sink interface { //Log to the sink. Best effort -- no need to worry about errors. Log(LogFormat) }
A Sink represents a write destination for a Logger. It provides a thread-safe interface for writing logs
func NewPrettySink ¶ added in v1.1.0
func NewRedactingWriterSink ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package lagerctx provides convenience when using Lager with the context feature of the standard library.
|
Package lagerctx provides convenience when using Lager with the context feature of the standard library. |
Click to show internal directories.
Click to hide internal directories.