logutil

package
v0.0.0-...-849730a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StrEntry []string

Functions

func Debug

func Debug(v ...interface{})

Debug logs a message at level Debug on the wrapped logger.

func Debugf

func Debugf(format string, v ...interface{})

Debugf logs a message at level Debug on the wrapped logger.

func Error

func Error(v ...interface{})

Error logs a message at level Error on the wrapped logger.

func Errorf

func Errorf(format string, v ...interface{})

Errorf logs a message at level Error on the wrapped logger.

func Fatal

func Fatal(v ...interface{})

Fatal logs a message at level Fatal on the wrapped logger then the process will exit with status set to 1.

func Fatalf

func Fatalf(format string, v ...interface{})

Fatalf logs a message at level Fatal on the wrapped logger then the process will exit with status set to 1.

func Info

func Info(v ...interface{})

Info logs a message at level Info on the wrapped logger.

func Infof

func Infof(format string, v ...interface{})

Infof logs a message at level Info on the wrapped logger.

func Warn

func Warn(v ...interface{})

Warn logs a message at level Warn on the wrapped logger.

func Warnf

func Warnf(format string, v ...interface{})

Warnf logs a message at level Warn on the wrapped logger.

Types

type TextFormatter

type TextFormatter struct {
	DisableTimestamp bool
	EnableEntryOrder bool
}

textFormatter is for compatibility with ngaut/log

func (*TextFormatter) Format

func (f *TextFormatter) Format(entry *log.Entry) ([]byte, error)

Format implements logrus.Formatter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL