Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Colors = []colorFunc{ log.DebugLevel: colors.Fmt(colors.Purple).Sprintf, log.InfoLevel: colors.Fmt(colors.Cyan).Sprintf, log.WarnLevel: colors.Fmt(colors.Yellow).Sprintf, log.ErrorLevel: colors.Fmt(colors.LightRed).Sprintf, log.FatalLevel: colors.Fmt(colors.Red).Sprintf, }
Colors mapping.
View Source
var Strings = [...]string{ log.DebugLevel: "DEBUG", log.InfoLevel: "INFO", log.WarnLevel: "WARN", log.ErrorLevel: "ERROR", log.FatalLevel: "FATAL", }
Strings mapping.
Functions ¶
func FormatCallPath ¶ added in v0.7.0
func InitLogLevel ¶
Types ¶
type BannerPrintStyle ¶
type BannerPrintStyle int
BannerPrintStyle - describe how to print banner when log is hidden.
const ( // SpinnerStyle show spinet with timer. SpinnerStyle BannerPrintStyle = iota // LineStile - print banner in newline with time 10 sec. (like terraform) LineStile )
type DelayHandler ¶
type DelayHandler struct {
// contains filtered or unexported fields
}
DelayHandler implementation.
func NewDelayHandler ¶
func NewDelayHandler(timeout time.Duration, banner string, bannerStyle BannerPrintStyle) *DelayHandler
NewDelayHandler handler.
type LogWriter ¶
type LogWriter struct {
// contains filtered or unexported fields
}
LogWriter io writer for logging driver.
func NewLogWriter ¶
NewLogWriter create log io writer.
type SliceFielder ¶
type SliceFielder struct {
Flds []string
}
func (SliceFielder) Fields ¶
func (s SliceFielder) Fields() log.Fields
type StdHandler ¶
StdHandler implementation.
func NewLogStdHandler ¶
func NewLogStdHandler() *StdHandler
NewLogStdHandler - new custom log handler for apex log lib.
Click to show internal directories.
Click to hide internal directories.