log

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug = func(format string, args ...any) {}
View Source
var Error = func(err error, args ...any) {
	if err != nil {
		argString := ""
		for _, arg := range args {
			argString += fmt.Sprintf(" %v", arg)
		}
		Log("%v%s", err, argString)
	}
}

Error logs any non-nil error passed

View Source
var Log = func(format string, args ...any) {
	_, _ = fmt.Fprintf(os.Stderr, Prefix+template.Render(format)+"\n", args...)
}
View Source
var Prefix = ""
View Source
var Trace = func(format string, args ...any) {}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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