Documentation ¶
Overview ¶
Package consolelogger defines a logger.Interface that emits logs to a writer (usually the console)
Index ¶
Constants ¶
View Source
const ClearScreen = "\033[H\033[2J"
ClearScreen is the control code to clear the screen
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { Writer io.Writer // where to print the logs // contains filtered or unexported fields }
Logger is a logger.Interface that emits logs to a writer (usually the console)
func (*Logger) Exit ¶
func (l *Logger) Exit()
Exit stops the status ticker, and prints a sorted list of the successful urls
func (*Logger) Finished ¶
Finished is called each time a URL successfully finishes processing (even for non-200 results)
func (*Logger) Init ¶
func (l *Logger) Init()
Init initialises the logger and starts the summary ticker
Click to show internal directories.
Click to hide internal directories.