New filterable logging system #42

Closed
dan wants to merge 1 commits from dan/libricochet-go:logging into master
Owner

New filterable logging system. Will allow cleaner output of stable distributed runtimes, but will also allow for easier debugging, as during dev, filters and settings can be adjusted to temporarily turn on more debuging logging printing in areas.

the .Df, .If, .Dln etc was an idea from Kotlins log.D() log.I() etc, feel free to pane and say we should use .Debugf etc?

The two filtering methods allow different style of extra log inclusion beyond log level, everythingFrom allows you to pull in more details from specific packages you think might be the problem, and nothingExcept allows you to clear away excess and just focus on an area.

Added the following to echobot:

log.SetLevel(log.LevelInfo)
log.AddEverythingFromPattern("connectivity")

and got

New filterable logging system. Will allow cleaner output of stable distributed runtimes, but will also allow for easier debugging, as during dev, filters and settings can be adjusted to temporarily turn on more debuging logging printing in areas. the .Df, .If, .Dln etc was an idea from Kotlins log.D() log.I() etc, feel free to pane and say we should use .Debugf etc? The two filtering methods allow different style of extra log inclusion beyond log level, everythingFrom allows you to pull in more details from specific packages you think might be the problem, and nothingExcept allows you to clear away excess and just focus on an area. Added the following to echobot: ``` log.SetLevel(log.LevelInfo) log.AddEverythingFromPattern("connectivity") ``` and got ```
First-time contributor
Drone Build Status: failure https://build.openprivacy.ca/openprivacy/libricochet-go/101
dan closed this pull request 2018-11-30 21:09:12 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: openprivacy/libricochet-go#42
No description provided.