renamed WritingRouter to PrettyWritingRouter.

master
Charles Iliya Krempeaux 2015-10-10 16:41:58 -07:00
parent dcaa8591f1
commit e2f685776b
1 changed files with 4 additions and 4 deletions

View File

@ -8,8 +8,8 @@ import (
) )
func NewWritingRouter(writer io.Writer) *WritingRouter { func NewPrettyWritingRouter(writer io.Writer) *PrettyWritingRouter {
router := WritingRouter{ router := PrettyWritingRouter{
writer:writer, writer:writer,
} }
@ -18,13 +18,13 @@ func NewWritingRouter(writer io.Writer) *WritingRouter {
type WritingRouter struct { type PrettyWritingRouter struct {
writer io.Writer writer io.Writer
} }
func (router *WritingRouter) Route(message string, context map[string]interface{}) error { func (router *PrettyWritingRouter) Route(message string, context map[string]interface{}) error {
const STYLE_PANIC = "\x1b[40;31;1m" // BG BLACK, FG RED, BOLD const STYLE_PANIC = "\x1b[40;31;1m" // BG BLACK, FG RED, BOLD
const STYLE_ERROR = "\x1b[41;33;1m" // BG RED, FG YELLOW, BOLD const STYLE_ERROR = "\x1b[41;33;1m" // BG RED, FG YELLOW, BOLD