Documentation
¶
Index ¶
- Variables
- func Assert[T comparable](a, b T) (e *Event)
- func Colored(writer io.Writer, domain ...string) Logger
- func ColoredWithT(writer io.Writer, formatT bool, domain ...string) Logger
- func EqualHook[T comparable](a, b T) HookFunc
- func ErrHook(err error) HookFunc
- func GreaterHook[T cmp.Ordered](a, b T) HookFunc
- func Json(writer io.Writer, domain ...string) Logger
- func Less(a, b float64) (e *Event)
- func LessHook(a, b float64) HookFunc
- func LessWithLevel(a, b float64, level Level) (e *Event)
- func NotEqual[T comparable](a, b T) (e *Event)
- func NotEqualWithLevel[T comparable](a, b T, level Level) (e *Event)
- func NotGreater[T cmp.Ordered](a, b T) (e *Event)
- func NotGreaterWithLevel[T cmp.Ordered](a, b T, level Level) (e *Event)
- func OnErr(err error) (e *Event)
- func OnErrWithLevel(err error, level Level) (e *Event)
- func PanicLess(a, b float64) (e *Event)
- func PanicNotGreater[T cmp.Ordered](a, b T) (e *Event)
- func PanicOnErr(err error) (e *Event)
- func Plain(writer io.Writer, formatT bool, domain ...string) Logger
- func PlainWithT(writer io.Writer, formatT bool, domain ...string) Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var Writer Logger
Functions ¶
func Assert ¶
func Assert[T comparable](a, b T) (e *Event)
func EqualHook ¶
func EqualHook[T comparable](a, b T) HookFunc
func GreaterHook ¶
func LessWithLevel ¶
func LessWithLevel(a, b float64, level Level) (e *Event)
func NotEqual ¶
func NotEqual[T comparable](a, b T) (e *Event)
func NotEqualWithLevel ¶
func NotEqualWithLevel[T comparable](a, b T, level Level) (e *Event)
func NotGreater ¶
func NotGreaterWithLevel ¶
func OnErrWithLevel ¶
func OnErrWithLevel(err error, level Level) (e *Event)
func PanicNotGreater ¶
func PanicOnErr ¶
func PanicOnErr(err error) (e *Event)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.