logger

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Debug is a logger for debug level messages
	Debug = log.New(os.Stdout, "[Debug] Regression: ", log.Lshortfile)
	// Info is a logger for infomation level messages
	Info = log.New(os.Stdout, "[Info] Regression: ", 0)
	// Warn is a logger for warning level messages
	Warn = log.New(os.Stderr, "[Warning] Regression: ", 0)
	// Err is a logger for error level messages
	Err = log.New(os.Stderr, "[Error] Regression: ", 0)
)

Functions

func SetLogsFlags

func SetLogsFlags(flags int)

SetLogsFlags : すべての種類のログに設定を適用する

func SetLogsOutput

func SetLogsOutput(w io.Writer)

SetLogsOutput : すべての種類のログの出力先を変更する

func SetLogsPrefix

func SetLogsPrefix(prefix string)

SetLogsPrefix : すべての種類のログメッセージのPrefixを設定する

Types

This section is empty.

Jump to

Keyboard shortcuts

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