mirror of
https://github.com/distribution/distribution.git
synced 2025-09-02 07:25:25 +00:00
Bump Logstash hook for logrus to v1.0.0
.
Signed-off-by: olegburov <oleg.burov@outlook.com>
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user