logger

package
v0.0.0-...-c77f481 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package main provides ...

Index

Constants

View Source
const (
	LevelTrace = iota
	LevelDebug
	LevelInfo
	LevelWarn
	LevelError
	LevelQuite
)
View Source
const (
	PADDING = "\t"
)

Variables

View Source
var Level = LevelTrace

Functions

func Debug

func Debug(msg string, params ...interface{})

log in debug mode

func Error

func Error(msg string, params ...interface{})

log in error level

func Header(providers *Providers)

prints headers of running processes

func Info

func Info(msg string, params ...interface{})

info level

func Inplace

func Inplace(msg string, params ...interface{})

prints given log at the same line by removing previous comment not used currently

func LogRequest

func LogRequest(r *http.Request)

dumps http.Request

func Logsum

func Logsum(providers *Providers)

prints checksums or error values for each runners

func SetLevel

func SetLevel(level string)

sets Level

func Status

func Status(providers *Providers)

prints status of each providers if log level INFO+ prints horizontally if horizontal 5 column per row if all processes finished in current row prints new one

func Trace

func Trace(msg string, params ...interface{})

log in trace mode

func Warn

func Warn(msg string, params ...interface{})

log in warn level

Types

This section is empty.

Jump to

Keyboard shortcuts

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