log

package
v0.0.0-...-feb7e18 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	// Caller is the optional calling function.
	Caller string `short:"c" long:"caller" description:"The calling function" optional:"yes"`
}

Command is the base command

type Level

type Level int
const (
	AlwaysLog Level = iota
	CriticalLog
	ErrorLog
	WarningLog
	NotificationLog
	InformationalLog
	DebugLog
)
const DefaultLogLevel Level = InformationalLog

type Log

type Log struct {
	Command
	// Level is the logging level.
	Level Level `short:"l" long:"level" description:"The log level" optional:"yes" default:"1" env:"_BENV_LOG_LEVEL"`

	Format string `` /* 135-byte string literal not displayed */
}

Log is the command that logs at the given level.

func (*Log) Execute

func (cmd *Log) Execute(args []string) error

Jump to

Keyboard shortcuts

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