|
@@ -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
|