Documentation ¶
Index ¶
- func CreateHTTPClient(tlsCerts *models.TLSCerts) (*http.Client, error)
- func FNVHash(key string) uint32
- func GenerateGUID(logger lager.Logger) (string, error)
- func InitLoggerFromConfig(conf *LoggingConfig, name string) lager.Logger
- func NewRedactingWriterWithURLCredSink(writer io.Writer, minLogLevel lager.LogLevel, keyPatterns []string, ...) (lager.Sink, error)
- type JSONRedacterWithURLCred
- type LoggingConfig
- type LoggregatorGRPCLogger
- type TimeLogFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLoggerFromConfig ¶
func InitLoggerFromConfig(conf *LoggingConfig, name string) lager.Logger
Types ¶
type JSONRedacterWithURLCred ¶
type JSONRedacterWithURLCred struct {
// contains filtered or unexported fields
}
func NewJSONRedacterWithURLCred ¶
func NewJSONRedacterWithURLCred(keyPatterns []string, valuePatterns []string) (*JSONRedacterWithURLCred, error)
func (JSONRedacterWithURLCred) Redact ¶
func (r JSONRedacterWithURLCred) Redact(data []byte) []byte
type LoggingConfig ¶
type LoggingConfig struct {
Level string `yaml:"level"`
}
type LoggregatorGRPCLogger ¶
type LoggregatorGRPCLogger struct {
// contains filtered or unexported fields
}
func NewLoggregatorGRPCLogger ¶
func NewLoggregatorGRPCLogger(logger lager.Logger) *LoggregatorGRPCLogger
func (*LoggregatorGRPCLogger) Panicf ¶
func (l *LoggregatorGRPCLogger) Panicf(message string, data ...interface{})
func (*LoggregatorGRPCLogger) Printf ¶
func (l *LoggregatorGRPCLogger) Printf(message string, data ...interface{})
type TimeLogFormat ¶
func NewTimeLogFormat ¶
func NewTimeLogFormat(log lager.LogFormat) TimeLogFormat
func (TimeLogFormat) ToJSON ¶
func (tlf TimeLogFormat) ToJSON() []byte
Click to show internal directories.
Click to hide internal directories.