Documentation ¶
Index ¶
- Variables
- func AddHook(id string, call func(s string))
- func Assert(success bool, parts ...any)
- func AssertMakeError(success bool, parts ...any) error
- func AssertNotError(err error, parts ...any)
- func Debug(parts ...any)
- func Error(parts ...any) error
- func ErrorAtStack(stackPos int, parts ...any) error
- func ErrorIf(check bool, parts ...any) bool
- func Fatal(parts ...any) error
- func FatalNotImplemented()
- func Full(v any) string
- func Func()
- func Hex(v any) string
- func Info(parts ...any)
- func Infof(format string, parts ...any)
- func NewError(parts ...any) error
- func NewLogError(priority Priority, time time.Time, pos int, parts ...any) error
- func OnError(parts ...any) bool
- func OnErrorTestError(t *testing.T, err error, items ...any) bool
- func Pointer(v any) string
- func PrintProfileAverages(printSecs float64)
- func PrintStartupInfo(version, commitHash, builtAt, builtBy, builtOn string)
- func RegisterEnabler(name string, b *Enabler)
- func Verbose(parts ...any)
- func Warn(parts ...any)
- type Enabler
- type LimitID
- type Line
- type Priority
- type Profile
- type StackAdjust
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PrintPriority = DebugLevel UseColor = false PrintDate = true EnablerList sync.Map // map[string]*Enabler )
View Source
var SyslogName string
Functions ¶
func AssertMakeError ¶
func AssertNotError ¶
func ErrorAtStack ¶
Error performs Log with ErrorLevel priority, getting stack from N
func FatalNotImplemented ¶
func FatalNotImplemented()
func PrintProfileAverages ¶
func PrintProfileAverages(printSecs float64)
func PrintStartupInfo ¶
func PrintStartupInfo(version, commitHash, builtAt, builtBy, builtOn string)
func RegisterEnabler ¶
Types ¶
type Profile ¶
func NewProfile ¶
type StackAdjust ¶
type StackAdjust int
Click to show internal directories.
Click to hide internal directories.