Versions in this module Expand all Collapse all v1 v1.4.11 Mar 2, 2021 Changes in this version + func ResetColor() string + func SetSequence(s uint64) + type Color uint8 + const ColorBlack + const ColorBlue + const ColorCyan + const ColorGreen + const ColorMagenta + const ColorNone + const ColorRed + const ColorWhite + const ColorYellow + func (c Color) Bold() string + func (c Color) Normal() string + type ColorFormatter struct + Bold bool + Reset bool + func (c ColorFormatter) Format(w io.Writer, entry zapcore.Entry, fields []zapcore.Field) + func (c ColorFormatter) LevelColor(l zapcore.Level) Color + type FormatEncoder struct + func NewFormatEncoder(formatters ...Formatter) *FormatEncoder + func (f *FormatEncoder) Clone() zapcore.Encoder + func (f *FormatEncoder) EncodeEntry(entry zapcore.Entry, fields []zapcore.Field) (*buffer.Buffer, error) + type Formatter interface + Format func(w io.Writer, entry zapcore.Entry, fields []zapcore.Field) + func NewFormatter(verb, format string) (Formatter, error) + func ParseFormat(spec string) ([]Formatter, error) + type LevelFormatter struct + FormatVerb string + func (l LevelFormatter) Format(w io.Writer, entry zapcore.Entry, fields []zapcore.Field) + type MessageFormatter struct + FormatVerb string + func (m MessageFormatter) Format(w io.Writer, entry zapcore.Entry, fields []zapcore.Field) + type ModuleFormatter struct + FormatVerb string + func (m ModuleFormatter) Format(w io.Writer, entry zapcore.Entry, fields []zapcore.Field) + type MultiFormatter struct + func NewMultiFormatter(formatters ...Formatter) *MultiFormatter + func (m *MultiFormatter) Format(w io.Writer, entry zapcore.Entry, fields []zapcore.Field) + func (m *MultiFormatter) SetFormatters(formatters []Formatter) + type SequenceFormatter struct + FormatVerb string + func (s SequenceFormatter) Format(w io.Writer, entry zapcore.Entry, fields []zapcore.Field) + type ShortFuncFormatter struct + FormatVerb string + func (s ShortFuncFormatter) Format(w io.Writer, entry zapcore.Entry, fields []zapcore.Field) + type StringFormatter struct + Value string + func (s StringFormatter) Format(w io.Writer, entry zapcore.Entry, fields []zapcore.Field) + type TimeFormatter struct + Layout string + func (t TimeFormatter) Format(w io.Writer, entry zapcore.Entry, fields []zapcore.Field)