Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Counts ERROR logs to the global jww logger. GlobalErrorCounter *jww.Counter )
Functions ¶
Types ¶
type Logger ¶ added in v0.54.0
type Logger struct { *jww.Notepad // The writer that represents stdout. // Will be ioutil.Discard when in quiet mode. Out io.Writer ErrorCounter *jww.Counter WarnCounter *jww.Counter // contains filtered or unexported fields }
Logger wraps a *loggers.Logger and some other related logging state.
func NewDebugLogger ¶
func NewDebugLogger() *Logger
NewDebugLogger is a convenience function to create a debug logger.
func NewErrorLogger ¶
func NewErrorLogger() *Logger
NewErrorLogger is a convenience function to create an error logger.
func NewLogger ¶ added in v0.54.0
func NewLogger(stdoutThreshold, logThreshold jww.Threshold, outHandle, logHandle io.Writer, saveErrors bool) *Logger
NewLogger creates a new Logger for the given thresholds
func NewWarningLogger ¶
func NewWarningLogger() *Logger
NewWarningLogger is a convenience function to create a warning logger.
func (*Logger) PrintTimer ¶ added in v0.60.0
func (*Logger) PrintTimerIfDelayed ¶ added in v0.60.0
PrintTimerIfDelayed prints a time statement to the FEEDBACK logger if considerable time is spent.
Click to show internal directories.
Click to hide internal directories.