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

Top 8.1% on proxy.golang.org
Top 7.0% forks on proxy.golang.org

proxy.golang.org : 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

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/d2g/logfilter
License: MPL-2.0
Latest release: over 7 years ago
First release: over 7 years ago
Namespace: github.com/d2g
Stars: 1 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 2 months ago

    Loading...
    Readme
    Loading...