log

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package log is a bit of a ridiculous package to have, but the built in `log` package always writes to stderr, and fancy structured logging isn't what this tool needs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug added in v0.2.0

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

Debug writes a formatted string with an appended newline to Stdout, if enabled. errors are ignored.

func Error

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

Error writes a formatted string with an appended newline to Stderr. errors are ignored.

func Info

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

Info writes a formatted string with an appended newline to Stdout. errors are ignored.

func IsDebug added in v0.2.1

func IsDebug() bool

IsDebug returns whether debug logging is enabled

func SetDebug added in v0.2.0

func SetDebug(enabled bool)

SetDebug controls whether Debug does anything

Types

This section is empty.

Jump to

Keyboard shortcuts

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