formatter: drop internalFormatter

This commit is contained in:
Simon Eskildsen
2014-07-26 22:22:39 -04:00
parent cfddc66325
commit 2c0db7c868
3 changed files with 3 additions and 9 deletions
+1 -3
View File
@@ -27,14 +27,12 @@ func miniTS() int {
type TextFormatter struct {
// Set to true to bypass checking for a TTY before outputting colors.
ForceColors bool
*internalFormatter
}
func (f *TextFormatter) Format(entry *Entry) ([]byte, error) {
b := &bytes.Buffer{}
f.prefixFieldClashes(entry)
prefixFieldClashes(entry)
if f.ForceColors || IsTerminal() {
levelText := strings.ToUpper(entry.Data["level"].(string))[0:4]