Documentation ¶
Index ¶
- Constants
- func FileAndTerminalStdout(path, fileName string) io.Writer
- func FileStdout(path, fileName string) io.Writer
- func GetJsonFormatter() logrus.Formatter
- func GetTextFormatter() logrus.Formatter
- type Caller
- type Config
- type Logger
- func (l *Logger) AddHook(hook logrus.Hook)
- func (l *Logger) Debug(msg string)
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Error(msg string)
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Fatal(msg string)
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Info(msg string)
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Panic(msg string)
- func (l *Logger) Panicf(format string, args ...interface{})
- func (l *Logger) Warn(msg string)
- func (l *Logger) Warnf(format string, args ...interface{})
- func (l *Logger) WithFields(fields map[string]interface{}) *Logger
Constants ¶
View Source
const TimestampFormat = "2006-01-02 15:04:05"
Variables ¶
This section is empty.
Functions ¶
func FileAndTerminalStdout ¶
func FileStdout ¶
func GetJsonFormatter ¶
func GetTextFormatter ¶
Types ¶
type Logger ¶
func (*Logger) WithFields ¶
Click to show internal directories.
Click to hide internal directories.