Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Use logrus to logging in docker plugin #34

Closed
IzabellaRaulin opened this issue Aug 25, 2016 · 0 comments
Closed

Use logrus to logging in docker plugin #34

IzabellaRaulin opened this issue Aug 25, 2016 · 0 comments

Comments

@IzabellaRaulin
Copy link
Contributor

More logs to trace collection process are needed but they should be depended on the set log level. Such logs should have fields with full information what happens, for example:

logrus.WithFields(logrus.Fields{
    "_block": "GetStatsFromContainer",
    "_id": container_id,
}).Info("Getting stats from docker container")

It will be helpful for debug purpose.

@IzabellaRaulin IzabellaRaulin changed the title Use logrus to logging docker plugin depended on the set loglevel Use logrus to logging docker plugin Aug 25, 2016
@IzabellaRaulin IzabellaRaulin changed the title Use logrus to logging docker plugin Use logrus to logging in docker plugin Aug 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants