log

package
v0.0.0-...-bc5e03d Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: AFL-3.0, CC-BY-3.0 Imports: 4 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = logrus.New()

Logger is the main logger of bioctl

View Source
var LoggerBash = Logger.WithFields(logrus.Fields{
	"prefix": "BASH"})

LoggerBash show [BASH] prefix in logrus message

Functions

func New

func New() *logrus.Logger

New Creates a new logger.

func New2

func New2() *logrus.Logger

New2 Creates a new logger with time.

func SetClassicStyle

func SetClassicStyle(Logger *logrus.Logger)

SetClassicStyle set logrus.Logger to classic "[2020-01-14 18:53:12] [Level] message" format

func SetLogStream

func SetLogStream(log *logrus.Logger, quiet bool, saveLog bool, logCon *io.Writer)

SetLogStream set log output stream

func SetQuietLog

func SetQuietLog(log *logrus.Logger, quite bool)

SetQuietLog Set quiet log

Types

This section is empty.

Jump to

Keyboard shortcuts

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