package
Version:
v0.0.0-...-feb7e18
Opens a new window with list of versions in this module.
Published: Apr 1, 2022
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Command struct {
Caller string `short:"c" long:"caller" description:"The calling function" optional:"yes"`
}
Command is the base command
const (
AlwaysLog Level = iota
CriticalLog
ErrorLog
WarningLog
NotificationLog
InformationalLog
DebugLog
)
type Log struct {
Command
Level Level `short:"l" long:"level" description:"The log level" optional:"yes" default:"1" env:"_BENV_LOG_LEVEL"`
Format string ``
}
Log is the command that logs at the given level.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.