Feedback writes plainly to the outHandle while
logging with the standard extra information (date, file, etc).
log*log.Loggerout*log.Logger(*T) Print(v ...interface{})(*T) Printf(format string, v ...interface{})(*T) Println(v ...interface{})(*T) output(s string)
var FEEDBACK *Feedback
A LogListener can ble supplied to a Notepad to listen on log writes for a given
threshold. This can be used to capture log events in unit tests and similar.
Note that this function will be invoked once for each log threshold. If
the given threshold is not of interest to you, return nil.
Note that these listeners will receive log events for a given threshold, even
if the current configuration says not to log it. That way you can count ERRORs even
if you don't print them to the console.
func LogCounter(counter *Counter, t1 Threshold) LogListener
func NewNotepad(outThreshold Threshold, logThreshold Threshold, outHandle, logHandle io.Writer, prefix string, flags int, logListeners ...LogListener) *Notepad
func SetLogListeners(l ...LogListener)
The pages are generated with Goldsv0.3.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.