cosmetic change
parent
40005f83f6
commit
1b31a83f95
|
@ -1,6 +1,5 @@
|
||||||
package flog
|
package flog
|
||||||
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/reiver/go-dotquote"
|
"github.com/reiver/go-dotquote"
|
||||||
"github.com/reiver/go-oi"
|
"github.com/reiver/go-oi"
|
||||||
|
@ -10,7 +9,6 @@ import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
// NewDefaultWritingRouter returns an initialized DefaultWritingRouter
|
// NewDefaultWritingRouter returns an initialized DefaultWritingRouter
|
||||||
func NewDefaultWritingRouter(writer io.Writer) *DefaultWritingRouter {
|
func NewDefaultWritingRouter(writer io.Writer) *DefaultWritingRouter {
|
||||||
return NewDefaultWritingRouterWithPrefix(writer, nil)
|
return NewDefaultWritingRouterWithPrefix(writer, nil)
|
||||||
|
@ -32,7 +30,6 @@ func NewDefaultWritingRouterWithPrefix(writer io.Writer, prefix map[string]inter
|
||||||
return &router
|
return &router
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// DefaultWritingRouter is a router that writes the log in a default format.
|
// DefaultWritingRouter is a router that writes the log in a default format.
|
||||||
//
|
//
|
||||||
// A DefaultWritingRouter is appropriate for a production (i.e., "PROD")
|
// A DefaultWritingRouter is appropriate for a production (i.e., "PROD")
|
||||||
|
@ -42,8 +39,6 @@ type DefaultWritingRouter struct {
|
||||||
prefix []byte
|
prefix []byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func (router *DefaultWritingRouter) Route(message string, context map[string]interface{}) error {
|
func (router *DefaultWritingRouter) Route(message string, context map[string]interface{}) error {
|
||||||
if nil == router {
|
if nil == router {
|
||||||
return errNilReceiver
|
return errNilReceiver
|
||||||
|
|
Loading…
Reference in New Issue