Documentation ¶
Index ¶
- func InitLogger(filename string, f Formatter)
- func UUID() string
- type Fields
- type Formatter
- type Logger
- func (l *Logger) Error(args ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Fatal(args ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Info(args ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
InitLogger set the output and formatter
Types ¶
type Logger ¶
Logger wraps logrus.Entry. It is the final or intermediate Logrus logging entry. It contains all the fields passed with WithField{,s}.
func GetDefaultLogger ¶
func GetDefaultLogger() *Logger
GetDefaultLogger returns loggers without any fields
func (*Logger) Error ¶
func (l *Logger) Error(args ...interface{})
Error logs a message at level Error
func (*Logger) Fatal ¶
func (l *Logger) Fatal(args ...interface{})
Fatal logs a message at level Fatal then the process will exit with status set to 1.
Click to show internal directories.
Click to hide internal directories.