From 5be851d70636beb2697398b221774c6f23ecdaa5 Mon Sep 17 00:00:00 2001 From: Simon Eskildsen Date: Wed, 25 Feb 2015 19:01:02 +0000 Subject: [PATCH] text_formatter: improve comments --- text_formatter.go | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/text_formatter.go b/text_formatter.go index 6d2740f..def60e9 100644 --- a/text_formatter.go +++ b/text_formatter.go @@ -35,12 +35,18 @@ func miniTS() int { type TextFormatter struct { // Set to true to bypass checking for a TTY before outputting colors. - ForceColors bool + ForceColors bool + + // Force disabling colors. DisableColors bool - // Set to true to disable timestamp logging (useful when the output - // is redirected to a logging system already adding a timestamp) + + // Disable timestamp logging. useful when output is redirected to logging + // system that already adds timestamps. DisableTimestamp bool - FullTimestamp bool + + // Enable logging the full timestamp when a TTY is attached instead of just + // the time passed since beginning of execution. + FullTimestamp bool } func (f *TextFormatter) Format(entry *Entry) ([]byte, error) {