Versions in this module Expand all Collapse all v1 v1.1.0 May 16, 2018 Changes in this version type LogLevel + func LogLevelFromString(s string) (LogLevel, error) + func (l LogLevel) String() string type Sink + func NewPrettySink(writer io.Writer, minLogLevel LogLevel) Sink v1.0.0 Aug 15, 2017 Changes in this version + const StackTraceBufferSize + type Data map[string]interface + type JSONRedacter struct + func NewJSONRedacter(keyPatterns []string, valuePatterns []string) (*JSONRedacter, error) + func (r JSONRedacter) Redact(data []byte) []byte + type LogFormat struct + Data Data + Error error + LogLevel LogLevel + Message string + Source string + Timestamp string + func (log LogFormat) ToJSON() []byte + type LogLevel int + const DEBUG + const ERROR + const FATAL + const INFO + type Logger interface + Debug func(action string, data ...Data) + Error func(action string, err error, data ...Data) + Fatal func(action string, err error, data ...Data) + Info func(action string, data ...Data) + RegisterSink func(Sink) + Session func(task string, data ...Data) Logger + SessionName func() string + WithData func(Data) Logger + func NewLogger(component string) Logger + type ReconfigurableSink struct + func NewReconfigurableSink(sink Sink, initialMinLogLevel LogLevel) *ReconfigurableSink + func (sink *ReconfigurableSink) GetMinLevel() LogLevel + func (sink *ReconfigurableSink) Log(log LogFormat) + func (sink *ReconfigurableSink) SetMinLevel(level LogLevel) + type Sink interface + Log func(LogFormat) + func NewRedactingWriterSink(writer io.Writer, minLogLevel LogLevel, keyPatterns []string, ...) (Sink, error) + func NewWriterSink(writer io.Writer, minLogLevel LogLevel) Sink Incompatible versions in this module v2.0.0+incompatible Oct 19, 2018 Other modules containing this package code.cloudfoundry.org/lager/v3