logging

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TraceLevel = 600 // 500 - 599
	DebugLevel = 500 // 400 - 499
	InfoLevel  = 400 // 300 - 399
	WarnLevel  = 300 // 200 - 299
	ErrorLevel = 200 // 100 - 199
	FatalLevel = 100 // 0   - 99
	Everything = 700
)

Variables

View Source
var LoggingLevel int = InfoLevel

Functions

func Clog added in v0.24.4

func Clog(condition bool, msg string, a ...interface{})

Clog always prints if condition==true

func Debug added in v0.1.2

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

Debug Debug

func Dirty added in v0.23.3

func Dirty(msg string, a ...interface{})

Dirty always prints everything including special characters, and does not add anything extra to the print.

func Error

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

Error ErrorF

func Fatal added in v0.1.2

func Fatal(msg string, a ...interface{})

Error ErrorF

func Here added in v0.23.9

func Here(msg string, a ...interface{})

Here is used for local logging only.

func Info

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

Info Info

func Level

func Level(level int, msg string, a ...interface{})

Level logs with predefined levels 0-100 TRACE 100-200 DEBUG 200-300 INFO 300-400 WARN 400-500 ERROR

func Print

func Print(msg string, a ...interface{})

Print Print

func SetLevel added in v0.1.2

func SetLevel(l int)

SetLevel set level

func Success

func Success(msg string, a ...interface{})

Success Success

func Trace added in v0.1.2

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

Trace Trace

func Warn

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

Warn WarnF

Types

type TimeMeasure added in v0.1.4

type TimeMeasure struct {
	// contains filtered or unexported fields
}

TimeMeasure GoPython

func Measure added in v0.1.4

func Measure() *TimeMeasure

func (*TimeMeasure) GetMilliseconds added in v0.1.4

func (t *TimeMeasure) GetMilliseconds() int64

GetMilliseconds GetMilliseconds

func (*TimeMeasure) GetMinutes added in v0.25.6

func (t *TimeMeasure) GetMinutes() float64

GetMilliseconds GetMilliseconds

func (*TimeMeasure) GetSeconds added in v0.25.6

func (t *TimeMeasure) GetSeconds() float64

GetMilliseconds GetMilliseconds

func (*TimeMeasure) Print added in v0.1.4

func (t *TimeMeasure) Print(tag string, msg string, a ...interface{}) int64

Print print

Jump to

Keyboard shortcuts

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