Miek Gieben
69a956f052
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.
2018-04-22 08:20:01 +01:00
..
2018-04-20 11:01:06 +01:00
2018-04-20 11:01:06 +01:00
2018-02-28 19:56:14 -08:00
2018-04-20 11:01:06 +01:00
2018-04-20 11:01:06 +01:00
2018-04-19 07:41:56 +01:00
2018-03-01 06:49:52 -08:00
2018-04-20 11:01:06 +01:00
2018-04-20 11:01:06 +01:00
2018-04-20 11:01:06 +01:00
2018-04-20 11:01:06 +01:00
2018-04-20 11:01:06 +01:00
2018-04-20 11:01:06 +01:00
2018-04-20 11:01:06 +01:00
2018-04-20 17:47:46 +03:00
2018-04-21 17:43:02 +01:00
2018-04-20 11:01:06 +01:00
2018-04-20 11:01:06 +01:00
2018-04-20 11:01:06 +01:00
2018-04-20 11:01:06 +01:00
2018-04-21 18:59:35 +01:00
2018-04-20 11:01:06 +01:00
2018-04-22 08:20:01 +01:00
2018-04-19 07:41:56 +01:00
2018-04-20 11:01:06 +01:00
2018-04-21 17:43:02 +01:00
2018-04-20 11:01:06 +01:00
2018-04-20 11:01:06 +01:00
2018-04-19 07:41:56 +01:00
2018-04-20 11:01:06 +01:00
2018-02-16 09:44:50 +01:00
2018-04-20 11:01:06 +01:00
2018-04-20 11:01:06 +01:00
2018-04-19 07:41:56 +01:00
2018-04-20 11:01:06 +01:00
2018-04-20 11:01:06 +01:00
2017-11-01 10:11:34 +00:00
2018-04-20 11:01:06 +01:00
2017-10-24 10:16:03 +01:00
2018-01-23 15:58:36 +00:00
2018-04-20 11:01:06 +01:00