log

package
v0.5.5 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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package log implements a logging interface.

Index

Constants

This section is empty.

Variables

View Source
var (
	Quiet   = false
	Verbose = false
)

Logging options.

Functions

func Debugf added in v0.1.0

func Debugf(format string, args ...interface{})

Debugf prints a debug level message.

func Error

func Error(err error)

Error prints an error level message.

func InfoMaybeWithKeyf added in v0.1.0

func InfoMaybeWithKeyf(key string, showKey bool, format string, args ...interface{})

InfoMaybeWithKeyf prints an info level message optionally with prefixed key.

func InfoWithKeyf added in v0.1.0

func InfoWithKeyf(key string, format string, args ...interface{})

InfoWithKeyf prints an info level message with prefixed key.

func Infof added in v0.1.0

func Infof(format string, args ...interface{})

Infof prints an info level message.

func Warnf added in v0.1.0

func Warnf(format string, args ...interface{})

Warnf prints a warn level message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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