Versions in this module Expand all Collapse all v0 v0.2.0 Mar 13, 2019 v0.1.0 Jul 23, 2018 Changes in this version + const All + const Color + const Error + const File + const Info + const JSON + const Journald + const Stderr + const Stdout + const Text + var ErrInvalidWriterFormatter = errors.New("log writer has an invalid formatter") + var ErrInvalidWriterLevel = errors.New("log writer has an invalid level") + var ErrInvalidWriterType = errors.New("log writer has an invalid type") + func Close() + func NewFilteredWriter(writer io.Writer, mu sync.Locker, filter FilterFunc) io.WriteCloser + func NewJournaldWriter(writer io.Writer, mu sync.Locker, filter FilterFunc) io.WriteCloser + func NewPrettyWriter(writer io.Writer, mu sync.Locker, filter FilterFunc, color bool) io.WriteCloser + type Config struct + Writers []WriterConfig + type ConfigHandler struct + func (h *ConfigHandler) Config() interface{} + func (h *ConfigHandler) ID() string + func (h *ConfigHandler) SetConfig(config interface{}) error + type FilterFunc func(map[string]interface{}) bool + type FilteredWriter struct + type JournaldWriter struct + type PrettyWriter struct + type WriterConfig struct + Compress bool + Filename string + Formatter string + Level string + MaximumAge int + MaximumBackups int + MaximumSize int + Type string + UseLocalTime bool