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