Documentation ¶
Index ¶
- func Bool(b bool, a ...any)
- func CaptureMode(w io.Writer)
- func DaemonMode(b bool)
- func DaemonShow() bool
- func Error(err error, a ...any)
- func Exit(a ...any)
- func Fatal(s string, a ...any)
- func Fatalf(s string, a ...any)
- func Fatalln(a ...any)
- func HttpMode(w http.ResponseWriter)
- func Info(a ...any)
- func Infof(s string, a ...any)
- func Log(f *LogFlag, a ...any)
- func Logf(f *LogFlag, s string, a ...any)
- func Printf(s string, a ...any)
- func Println(a ...any)
- func ProcessFlags(callback func(*LogFlag))
- func SetAll(b bool)
- func SetDefaults()
- func SetTmpOLD()
- func Sleep(a ...any)
- func Spew(b any, a ...any)
- func Sprint(a ...any) string
- func Sprintf(s string, a ...any) string
- func Sprintln(a ...any) string
- func UnsetTmp()
- func Verbose(a ...any)
- func Warn(a ...any)
- type LogFlag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureMode ¶ added in v0.22.5
func DaemonMode ¶ added in v0.22.1
func DaemonMode(b bool)
func DaemonShow ¶ added in v0.22.1
func DaemonShow() bool
func Exit ¶
func Exit(a ...any)
exit() # yep. exits. I guess everything must be fine exit(3) # I guess 3 it is then exit("dont like apples") # ok. I'll make a note of that
func HttpMode ¶ added in v0.22.2
func HttpMode(w http.ResponseWriter)
Types ¶
type LogFlag ¶
type LogFlag struct {
// contains filtered or unexported fields
}
var ERROR *LogFlag // toggles log.Warn() (true by default)
var INFO *LogFlag // toggles log.Info()
var PRINTLN *LogFlag // toggles log.Println() (true by default)
var SPEW *LogFlag // toggles log.Spew()
var VERBOSE *LogFlag // toggles log.Verbose()
var WARN *LogFlag // toggles log.Warn() (true by default)
func ShowFlags ¶
func ShowFlags() []*LogFlag
this bypasses all checks and _always_ logs the info to STDOUT is this a bad idea? Probably not.... TODO: returning []*LogFlag is not safe and access must be locked but this is only used by the log debugging window at this time
func (*LogFlag) GetDefault ¶ added in v0.5.6
returns the description of the flag
func (*LogFlag) GetSubsystem ¶
returns the subsystem of the flag
Click to show internal directories.
Click to hide internal directories.