moved Sirupsen to sirupsen on a case sensitive system

Signed-off-by: Igor Morozov <igor@adhoc05-sjc1.prod.uber.internal>
This commit is contained in:
Igor Morozov 2017-06-23 12:45:04 -07:00 committed by Igor Morozov
parent 1e2f10eb65
commit a97d7c0c15
45 changed files with 474 additions and 247 deletions

View file

@ -1,11 +1,11 @@
package logrus_logstash
package logrustash
import (
"encoding/json"
"fmt"
"strings"
"github.com/Sirupsen/logrus"
"github.com/sirupsen/logrus"
)
// Formatter generates json in logstash format.
@ -44,8 +44,7 @@ func (f *LogstashFormatter) FormatWithPrefix(entry *logrus.Entry, prefix string)
timeStampFormat := f.TimestampFormat
if timeStampFormat == "" {
//timeStampFormat = logrus.DefaultTimestampFormat
timeStampFormat = "2006-01-02 15:04:05.000"
timeStampFormat = logrus.DefaultTimestampFormat
}
fields["@timestamp"] = entry.Time.Format(timeStampFormat)