Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilelineCaller ¶
FilelineCaller returns file and line for caller
Types ¶
type JSONFormatter ¶
type JSONFormatter struct { AppName string TimeFormat string // contains filtered or unexported fields }
JSONFormatter is a json formatter
func (*JSONFormatter) Format ¶
func (f *JSONFormatter) Format(level log.Level, msg string, logger *log.Logger) []byte
Format implements log.Formatter
type TextFormatter ¶
type TextFormatter struct { AppName string TimeFormat string // contains filtered or unexported fields }
TextFormatter is a text line formatter
func (*TextFormatter) Format ¶
func (f *TextFormatter) Format(level log.Level, msg string, logger *log.Logger) []byte
Format implements log.Formatter
Click to show internal directories.
Click to hide internal directories.