clog
This commit is contained in:
parent
15e2168944
commit
2ba108890d
@ -10,12 +10,14 @@ import (
|
|||||||
|
|
||||||
"github.com/coredns/coredns/plugin"
|
"github.com/coredns/coredns/plugin"
|
||||||
"github.com/coredns/coredns/plugin/metrics"
|
"github.com/coredns/coredns/plugin/metrics"
|
||||||
"github.com/coredns/coredns/plugin/pkg/log"
|
clog "github.com/coredns/coredns/plugin/pkg/log"
|
||||||
|
|
||||||
"github.com/miekg/dns"
|
"github.com/miekg/dns"
|
||||||
"golang.org/x/net/context"
|
"golang.org/x/net/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var log = clog.NewWithPlugin("example")
|
||||||
|
|
||||||
// Example is an example plugin to show how to write a plugin.
|
// Example is an example plugin to show how to write a plugin.
|
||||||
type Example struct {
|
type Example struct {
|
||||||
Next plugin.Handler
|
Next plugin.Handler
|
||||||
|
Loading…
Reference in New Issue
Block a user