Versions in this module Expand all Collapse all v1 v1.0.1 Nov 14, 2016 Changes in this version type CustomFormatter + func (f *CustomFormatter) ParseTemplate(template string, custom CustomHandlers) + func (f *CustomFormatter) Sprintf(values ...interface{}) string v1.0.0 Nov 7, 2016 Changes in this version + const AnsiBlue + const AnsiCyan + const AnsiGreen + const AnsiHiBlue + const AnsiHiCyan + const AnsiHiGreen + const AnsiHiMagenta + const AnsiHiRed + const AnsiHiWhite + const AnsiHiYellow + const AnsiMagenta + const AnsiRed + const AnsiReset + const AnsiWhite + const AnsiYellow + const Basic + const DefaultTimestampFormat + const Detailed + const EnableVirtualTerminalProcessing — windows/amd64 + const Message + func CallerName(skip int) string + func Color(entry *logrus.Entry, formatter *CustomFormatter, s string) string + func HandlerAscTime(entry *logrus.Entry, formatter *CustomFormatter) (interface{}, error) + func HandlerFields(entry *logrus.Entry, formatter *CustomFormatter) (interface{}, error) + func HandlerLevelName(entry *logrus.Entry, formatter *CustomFormatter) (interface{}, error) + func HandlerMessage(entry *logrus.Entry, _ *CustomFormatter) (interface{}, error) + func HandlerName(entry *logrus.Entry, _ *CustomFormatter) (interface{}, error) + func HandlerProcess(_ *logrus.Entry, _ *CustomFormatter) (interface{}, error) + func HandlerRelativeCreated(_ *logrus.Entry, formatter *CustomFormatter) (interface{}, error) + func HandlerShortLevelName(entry *logrus.Entry, formatter *CustomFormatter) (interface{}, error) + func ParseTemplate(template string, custom CustomHandlers) (string, []Handler, Attributes) + func WindowsEnableNativeANSI(stderr bool) error + func WindowsNativeANSI() bool + type Attributes map[string]bool + func (a Attributes) Contains(attr string) bool + type CustomFormatter struct + Attributes Attributes + ColorDebug int + ColorError int + ColorFatal int + ColorInfo int + ColorPanic int + ColorWarn int + DisableColors bool + DisableSorting bool + ForceColors bool + Handlers []Handler + Template string + TimestampFormat string + func NewFormatter(template string, custom CustomHandlers) *CustomFormatter + func (f *CustomFormatter) Format(entry *logrus.Entry) ([]byte, error) + type CustomHandlers map[string]Handler + type Handler func(*logrus.Entry, *CustomFormatter) (interface{}, error)