Documentation ¶
Index ¶
- Variables
- func Err(e error, msg ...string) bool
- func ErrSkipTrace(e error, msg ...string) bool
- func Error(e error, testMode bool, msg ...string) error
- func NeedsQuoting(text string) bool
- func NewErr() ers.Error
- func NoPrintErr(e error) bool
- func NotErr(e error, msg ...string) bool
- func NotErrSkipTrace(e error, msg ...string) bool
- func StopErr(e error, msg ...string)
- func WarnErr(e error, msg ...string) bool
- type BSErr
- func (er *BSErr) Err(e error, skipTrace bool, msg ...string) bool
- func (er *BSErr) ErrFullStack(e error, test bool, msg ...string) error
- func (er *BSErr) NoPrintErr(e error) bool
- func (er *BSErr) NotErr(e error, msg ...string) bool
- func (er *BSErr) NotErrSkipTrace(e error, skipTrace bool, msg ...string) bool
- func (er *BSErr) StopErr(e error, msg ...string)
- func (er *BSErr) WarnErr(e error, msg ...string) bool
- type ErrStack
- type TextFormatter
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Level = 4
)
Functions ¶
func ErrSkipTrace ¶
func NeedsQuoting ¶
func NoPrintErr ¶
func NotErrSkipTrace ¶
Types ¶
type BSErr ¶
type BSErr struct {
// contains filtered or unexported fields
}
func (*BSErr) ErrFullStack ¶ added in v0.0.24
func (*BSErr) NoPrintErr ¶
NoPrintErr is this an Error if so don't print, used in if/else
func (*BSErr) NotErrSkipTrace ¶
NotErr check for NO error and output message if one is passed in
type TextFormatter ¶
type TextFormatter struct { log.TextLayout FormatValue func(value interface{}) string // contains filtered or unexported fields }
TextFormatter formats logs into text
func NewTextFormatter ¶
func NewTextFormatter() *TextFormatter
func (*TextFormatter) Colors ¶
func (f *TextFormatter) Colors(enable bool)
func (*TextFormatter) DisableTimeStamp ¶
func (f *TextFormatter) DisableTimeStamp()
func (*TextFormatter) EnableTimeStamp ¶
func (f *TextFormatter) EnableTimeStamp()
func (*TextFormatter) Terminal ¶
func (f *TextFormatter) Terminal(term bool)
Click to show internal directories.
Click to hide internal directories.