flog

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const LogEnvVariable = "LOG_LEVEL"

Variables

This section is empty.

Functions

func Debugf

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

func Errorf

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

Warnf logs a formatted error message

func Guidef

func Guidef(format string, a ...interface{})

Infof prints out a timestamp as prefix, Guidef just prints the message

func Infof

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

Warnf logs a formatted error message

func Successf

func Successf(format string, a ...interface{})

Successf logs a formatted success message

func Warnf

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

Warnf logs a formatted warning message

Types

type InfoFormatter

type InfoFormatter struct {
}

Info formatter is to not display the LOG_LEVEL in front of the command eg. INFO[2020-070-01T15:22:22] Hello World

func (*InfoFormatter) Format

func (f *InfoFormatter) Format(entry *logrus.Entry) ([]byte, error)

Jump to

Keyboard shortcuts

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