Retracted : These v1 versions were published incorrectly. Retracting to prevent go mod
from automatically selecting them.
Discover Packages
github.com/m-lab/go
logx
package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Jul 17, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 23
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package logx provides very useful utilities for logging.
I hesitate to create it, for fear we will add too much stuff to it. But LogEvery seems worth it.
This packages uses the MIT license, to respect the corresponding license from kami-zh/go-capture
CaptureLog captures all output from log.Println, etc.
Adapted from github.com/kami-zh
type Logger interface {
Println(v ...interface{})
Printf(fmt string , v ...interface{})
}
A Logger has basic Printf and Println functions.
NewLogEvery creates a logger that will log not more than once every interval.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.