Documentation ¶
Overview ¶
Package cmdlog implements color leveled logging for command line tools.
Index ¶
- type Logger
- func (l *Logger) GetDebug() bool
- func (l *Logger) GetTS() bool
- func (l *Logger) GetTSFormat() string
- func (l *Logger) SetDebug(enabled bool)
- func (l *Logger) SetTS(enabled bool)
- func (l *Logger) SetTSFormat(tsfmt string)
- func (l *Logger) WithCCPrefix(s string) *Logger
- func (l *Logger) WithPrefix(caps, s string) *Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { NoLevel *log.Logger Debug *log.Logger Success *log.Logger Info *log.Logger Warn *log.Logger Error *log.Logger // contains filtered or unexported fields }
func (*Logger) GetTSFormat ¶
func (*Logger) SetTSFormat ¶
func (*Logger) WithCCPrefix ¶
func (*Logger) WithPrefix ¶
Click to show internal directories.
Click to hide internal directories.