An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/d2g/logfilter

Package logfilter implements a filter on the standard log package. Like most alternative logging packages using this package support the semi standard logging levels like: Unlike other packages log filter doesn't require the package to specifically import an additional package over the standard logging package. It does however require them to follow a convention. The default convention is: log.Println("<Level>:<Message>") i.e. log.Println("Trace:Example Message") is a trace level message. When logging at trace level it's usual to be very verbose which results in a large amount of output. Filtering this information down can result in it being easier to debug issues and system requirements while producing logging information(i.e. Disk IO). Logfilter allows you to filter this output based on the package/file location and the log level type. For example in your live application you may only want to output warning messages: If you've previously used logutils or a square based convention then look at the example included in example_logutils_test.go

Ecosystem
proxy.golang.org
Latest Release
v0.0.0-20170825143433-9057af47c52f
over 8 years ago
Versions
1
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/d2g/logfilter
spec
License MPL-2.0
Namespace github.com/d2g
First Release over 8 years ago
Last Synced 4 days ago
Repository
Stars 1 on GitHub
Forks 1 on GitHub
Rankings on proxy.golang.org
Overall Top 8.1%
Forks Top 7.0%