NewLog
This commit is contained in:
parent
847a01df82
commit
45208992b5
@ -165,8 +165,8 @@ func (k *klog) Stream() (log.Stream, error) {
|
||||
return stream, nil
|
||||
}
|
||||
|
||||
// New returns a configured Kubernetes logger
|
||||
func New(opts ...log.Option) log.Log {
|
||||
// NewLog returns a configured Kubernetes logger
|
||||
func NewLog(opts ...log.Option) log.Log {
|
||||
klog := &klog{}
|
||||
for _, o := range opts {
|
||||
o(&klog.Options)
|
||||
|
@ -20,7 +20,7 @@ func TestKubernetes(t *testing.T) {
|
||||
t.Skip("In Travis CI")
|
||||
}
|
||||
|
||||
k := New(log.Name("micro-network"))
|
||||
k := NewLog(log.Name("micro-network"))
|
||||
|
||||
r, w, err := os.Pipe()
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user