Ecosyste.ms: Packages

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

Top 1.8% on proxy.golang.org
Top 0.1% dependent packages on proxy.golang.org
Top 0.1% dependent repos on proxy.golang.org
Top 3.9% forks on proxy.golang.org
Top 0.5% docker downloads on proxy.golang.org

proxy.golang.org : github.com/juju/loggo

[godoc-link-here] This package provides an alternative to the standard library log package. The actual logging functions never return errors. If you are logging something, you really don't want to be worried about the logging having trouble. Modules have names that are defined by dotted strings. There is a root module that has the name `""`. Each module (except the root module) has a parent, identified by the part of the name without the last dotted value. * the parent of "first.second.third" is "first.second" * the parent of "first.second" is "first" * the parent of "first" is "" (the root module) Each module can specify its own severity level. Logging calls that are of a lower severity than the module's effective severity level are not written out. Loggers are created through their Context. There is a default global context that is used if you just want simple use. Contexts are used where you may want different sets of writers for different loggers. Most use cases are fine with just using the default global context. Loggers are created using the GetLogger function. The default global context has one writer registered, which will write to Stderr, and the root module, which will only emit warnings and above. If you want to continue using the default logger, but have it emit all logging levels you need to do the following. To make loggo produce colored output, you can do the following, having imported github.com/juju/loggo/loggocolor:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/juju/loggo
License: LGPL-3.0
Latest release: almost 3 years ago
First release: almost 3 years ago
Namespace: github.com/juju
Dependent packages: 1,082
Dependent repositories: 4,942
Stars: 133 on GitHub
Forks: 35 on GitHub
Docker dependents: 33
Docker downloads: 1,497,612
See more repository details: repos.ecosyste.ms
Last synced: 6 days ago

    Loading...
    Readme
    Loading...