• Miek Gieben's avatar
    plugin/pkg/log: add plugin logging (#1716) · 69a956f0
    Miek Gieben authored
    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.
    69a956f0
plugin.go 1.49 KB