Bump Logstash hook for logrus to v1.0.0
.
Signed-off-by: olegburov <oleg.burov@outlook.com>
This commit is contained in:
parent
22c074842e
commit
907e7be545
10 changed files with 157 additions and 289 deletions
|
@ -18,6 +18,7 @@ import (
|
|||
"github.com/bugsnag/bugsnag-go"
|
||||
"github.com/docker/go-metrics"
|
||||
gorhandlers "github.com/gorilla/handlers"
|
||||
"github.com/sirupsen/logrus"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/yvasiyarov/gorelic"
|
||||
|
@ -285,7 +286,7 @@ func configureLogging(ctx context.Context, config *configuration.Configuration)
|
|||
})
|
||||
case "logstash":
|
||||
log.SetFormatter(&logstash.LogstashFormatter{
|
||||
TimestampFormat: time.RFC3339Nano,
|
||||
Formatter: &logrus.JSONFormatter{TimestampFormat: time.RFC3339Nano},
|
||||
})
|
||||
default:
|
||||
// just let the library use default on empty string.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue