added to docs
parent
e2f685776b
commit
6aefee528e
|
@ -8,6 +8,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
// PrettyWritingRouter returns an initialized PrettyWritingRouter
|
||||||
func NewPrettyWritingRouter(writer io.Writer) *PrettyWritingRouter {
|
func NewPrettyWritingRouter(writer io.Writer) *PrettyWritingRouter {
|
||||||
router := PrettyWritingRouter{
|
router := PrettyWritingRouter{
|
||||||
writer:writer,
|
writer:writer,
|
||||||
|
@ -18,6 +19,13 @@ func NewPrettyWritingRouter(writer io.Writer) *PrettyWritingRouter {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// PrettyWritingRouter is a router that writes a pretty version of
|
||||||
|
// the log it was give (including COLORS!) to the writer it was
|
||||||
|
// given when it was created.
|
||||||
|
//
|
||||||
|
// A PrettyWritingRouter is appropriate for a deployment (i.e., "DEV")
|
||||||
|
// deployment enviornment. (And probably not appropriate a production
|
||||||
|
// (i.e., "PROD") deployment environment.)
|
||||||
type PrettyWritingRouter struct {
|
type PrettyWritingRouter struct {
|
||||||
writer io.Writer
|
writer io.Writer
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue