diff options
author | 2018-04-22 08:20:01 +0100 | |
---|---|---|
committer | 2018-04-22 08:20:01 +0100 | |
commit | 69a956f052a603eca3d400abf8a44a9b44f83184 (patch) | |
tree | f00914c0a5553a053f3253936853ede7080eaa3f /plugin/file/ent_test.go | |
parent | a466bb6fc61f43be36fd3f51f768df1355c1e600 (diff) | |
download | coredns-69a956f052a603eca3d400abf8a44a9b44f83184.tar.gz coredns-69a956f052a603eca3d400abf8a44a9b44f83184.tar.zst coredns-69a956f052a603eca3d400abf8a44a9b44f83184.zip |
plugin/pkg/log: add plugin logging (#1716)
Add per plugin logging to make it explicit what is logging, if you
include this package under the name clog (coredns log), you can do the
following:
log := clog.NewWithPlugin{whoami{}} // e.g.
And then just log.Info(...); these will then include the plugin ala:
[INFO] plugin/whoami: stuff
So we only need to init the logger and then just use it.
Diffstat (limited to 'plugin/file/ent_test.go')
0 files changed, 0 insertions, 0 deletions