Versions in this module Expand all Collapse all v0 v0.17.1 Sep 6, 2017 v0.17.0 Sep 4, 2017 Changes in this version + const Capture + const ExcludeWhenAllMatch + const ExcludeWhenAnyMatches + const File + const Filter + const Graylog + const IncludeWhenAllMatch + const IncludeWhenAnyMatches + const Label + const NoOutput + const NoTransform + const Prune + const Stderr + const Stdout + const Syslog + func BuildFilterPredicate(filterConfig *FilterConfig) (func([]interface{}) bool, error) + func BuildKeyValuesPredicate(kvpConfigs []*KeyValuePredicateConfig, matchAll bool) (func([]interface{}) bool, error) + func BuildLoggerFromSinkConfig(sinkConfig *SinkConfig, captures map[string]*loggers.CaptureLogger) (kitlog.Logger, map[string]*loggers.CaptureLogger, error) + func BuildOutputLogger(outputConfig *OutputConfig) (kitlog.Logger, error) + func BuildTransformLogger(transformConfig *TransformConfig, captures map[string]*loggers.CaptureLogger, ...) (kitlog.Logger, map[string]*loggers.CaptureLogger, error) + type CaptureConfig struct + BufferCap int + Name string + Passthrough bool + type FileConfig struct + Path string + type FilterConfig struct + FilterMode filterMode + Predicates []*KeyValuePredicateConfig + type GraylogConfig struct + type KeyValuePredicateConfig struct + KeyRegex string + ValueRegex string + type LabelConfig struct + Labels map[string]string + Prefix bool + type LoggingConfig struct + RootSink *SinkConfig + func DefaultClientLoggingConfig() *LoggingConfig + func DefaultNodeLoggingConfig() *LoggingConfig + func LoggingConfigFromMap(loggingRootMap map[string]interface{}) (*LoggingConfig, error) + func (lc *LoggingConfig) RootTOMLString() string + func (lc *LoggingConfig) TOMLString() string + type LoggingConfigWrapper struct + Logging *LoggingConfig + type OutputConfig struct + Format string + OutputType outputType + func FileOutput(path string) *OutputConfig + func RemoteSyslogOutput(tag, remoteUrl string) *OutputConfig + func StderrOutput() *OutputConfig + func StdoutOutput() *OutputConfig + func SyslogOutput(tag string) *OutputConfig + func (outputConfig *OutputConfig) SetFormat(format string) *OutputConfig + type PruneConfig struct + Keys []string + type SinkConfig struct + Output *OutputConfig + Sinks []*SinkConfig + Transform *TransformConfig + func Sink() *SinkConfig + func (sinkConfig *SinkConfig) AddSinks(sinks ...*SinkConfig) *SinkConfig + func (sinkConfig *SinkConfig) BuildLogger() (kitlog.Logger, map[string]*loggers.CaptureLogger, error) + func (sinkConfig *SinkConfig) SetOutput(output *OutputConfig) *SinkConfig + func (sinkConfig *SinkConfig) SetTransform(transform *TransformConfig) *SinkConfig + type SyslogConfig struct + Tag string + Url string + type TransformConfig struct + TransformType transformType + func CaptureTransform(name string, bufferCap int, passthrough bool) *TransformConfig + func FilterTransform(fmode filterMode, keyvalueRegexes ...string) *TransformConfig + func LabelTransform(prefix bool, labelKeyvals ...string) *TransformConfig + func PruneTransform(keys ...string) *TransformConfig