logger

package
v0.23.3 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 7 Imported by: 15

Documentation

Index

Constants

View Source
const (
	PrefixDefault int32 = iota // solid dot with timestamp
	PrefixNone                 // empty prefix
	PrefixText                 // info/fail text with timestamp
	PrefixEmoji                // use emoji prefix with timestamp
)

Variables

This section is empty.

Functions

func Error

func Error(v ...interface{})

Error prints `v` into standard output with fail prefix.

func Errorf

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

Errorf is the formatted version of Error().

func Info

func Info(v ...interface{})

Info prints `v` into standard output with info prefix.

func Infof

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

Infof is the formatted version of Info().

func SendToStderr

func SendToStderr(all ...bool)

func SetNoTimestamp

func SetNoTimestamp()

func SetPrefix

func SetPrefix(p ...int32)

SetPrefix sets the prefix style to p. Default is colored dots with timestamps.

Types

This section is empty.

Jump to

Keyboard shortcuts

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