From 79b314530261c54e8cb6cf0a089ce29ca6181c5e Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sun, 20 Apr 2014 12:29:02 -0400 Subject: [PATCH] Switching non-TTY text formatter to use %q instead of '%v' so that the output becomes l2met compatible yey! --- text_formatter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text_formatter.go b/text_formatter.go index 95c3264..ad21821 100644 --- a/text_formatter.go +++ b/text_formatter.go @@ -74,7 +74,7 @@ func (f *TextFormatter) Format(entry *Entry) ([]byte, error) { func (f *TextFormatter) AppendKeyValue(serialized []byte, key, value interface{}) []byte { if _, ok := value.(string); ok { - return append(serialized, []byte(fmt.Sprintf("%v='%v' ", key, value))...) + return append(serialized, []byte(fmt.Sprintf("%v=%q ", key, value))...) } else { return append(serialized, []byte(fmt.Sprintf("%v=%v ", key, value))...) }