Documentation ¶
Index ¶
- func Debug(format string, args ...interface{})
- func Error(format string, args ...interface{})
- func Fatal(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func Panic(format string, args ...interface{})
- func SetLevel(logLevel string)
- func SetRotateLogs(dir string)
- func Trace(format string, args ...interface{})
- func Warn(format string, args ...interface{})
- func WithContext(ctx context.Context) *logrus.Entry
- func WithError(err error) *logrus.Entry
- func WithField(key string, value interface{}) *logrus.Entry
- func WithTime(t time.Time) *logrus.Entry
- type Entry
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(format string, args ...interface{})
Debugf logs a message at level Debug on the standard logger.
func Error ¶
func Error(format string, args ...interface{})
Errorf logs a message at level Error on the standard logger.
func Fatal ¶
func Fatal(format string, args ...interface{})
Fatalf logs a message at level Fatal on the standard logger then the process will exit with status set to 1.
func Info ¶
func Info(format string, args ...interface{})
Infof logs a message at level Info on the standard logger.
func Panic ¶
func Panic(format string, args ...interface{})
Panicf logs a message at level Panic on the standard logger.
func SetRotateLogs ¶
func SetRotateLogs(dir string)
func Trace ¶
func Trace(format string, args ...interface{})
Tracef logs a message at level Trace on the standard logger.
func Warn ¶
func Warn(format string, args ...interface{})
Warnf logs a message at level Warn on the standard logger.
func WithContext ¶
WithContext creates an entry from the standard logger and adds a context to it.
func WithError ¶
WithError creates an entry from the standard logger and adds an error to it, using the value defined in ErrorKey as key.