aboutsummaryrefslogtreecommitdiff
path: root/plugin/rewrite/rewrite_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-04-22 08:20:01 +0100
committerGravatar GitHub <noreply@github.com> 2018-04-22 08:20:01 +0100
commit69a956f052a603eca3d400abf8a44a9b44f83184 (patch)
treef00914c0a5553a053f3253936853ede7080eaa3f /plugin/rewrite/rewrite_test.go
parenta466bb6fc61f43be36fd3f51f768df1355c1e600 (diff)
downloadcoredns-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/rewrite/rewrite_test.go')
0 files changed, 0 insertions, 0 deletions