logutil

package
v0.1.2-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0, BSD-3-Clause Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StrEntry []string

Functions

func Debug

func Debug(v ...any)

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

func Debugf

func Debugf(format string, v ...any)

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

func Error

func Error(v ...any)

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

func Errorf

func Errorf(format string, v ...any)

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

func Fatal

func Fatal(v ...any)

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 ...any)

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 ...any)

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

func Infof

func Infof(format string, v ...any)

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

func Warn

func Warn(v ...any)

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

func Warnf

func Warnf(format string, v ...any)

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