Commit graph

6 commits

Author SHA1 Message Date
Stephen J Day
aa4a1f851d
log: remove crusty context, replace with shiny
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2016-11-30 17:40:26 -08:00
Stephen J Day
cd4f1f98d8 log: mark grpc messages with module
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2016-11-30 14:07:51 -08:00
Stephen J Day
deb62729ba log: add testing for context logger
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2016-08-02 18:00:48 -07:00
Stephen J Day
5288d8f9fe log: improve module-oriented logging
To improve the output of module logging, we now include a path that
represents the modules that a context has passed through. This makes it
easy to tell if a log line came from a particular module hierarchy.

A helper function, `WithModule`, provides an easy way to mark a context
with a module and inject that module into the logger.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2016-08-02 16:41:49 -07:00
Stephen J Day
41aadb3fb0 log: replace grpc logger with logrus
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2016-05-12 15:53:32 -07:00
Stephen J Day
b8e1fa2e15 log: provide simple context logging
We consolidate simple context logging for use across packages. For now,
one still needs logrus, but we can take this further and avoid the
import at a later time.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2016-03-10 20:00:17 -08:00