mirror of
https://github.com/openziti/ziti.git
synced 2026-10-12 23:32:02 +00:00
Merge pull request #267 from openziti/ms_ts
Add fractional seconds (milliseconds) to logrus.JSONFormatter.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
# Release 0.18.3
|
||||
|
||||
## What's New
|
||||
|
||||
* Ziti executables that use JSON logging now emit timestamps that include fractional seconds. Timestamps remain in
|
||||
the RFC3339 format.
|
||||
|
||||
# Release 0.18.2
|
||||
|
||||
## What's New
|
||||
|
||||
@@ -52,7 +52,7 @@ var root = &cobra.Command{
|
||||
case "pfxlog":
|
||||
logrus.SetFormatter(pfxlog.NewFormatterStartingToday())
|
||||
case "json":
|
||||
logrus.SetFormatter(&logrus.JSONFormatter{})
|
||||
logrus.SetFormatter(&logrus.JSONFormatter{TimestampFormat: "2006-01-02T15:04:05.000Z"})
|
||||
case "text":
|
||||
logrus.SetFormatter(&logrus.TextFormatter{})
|
||||
default:
|
||||
|
||||
@@ -58,7 +58,7 @@ var root = &cobra.Command{
|
||||
case "pfxlog":
|
||||
logrus.SetFormatter(pfxlog.NewFormatterStartingToday())
|
||||
case "json":
|
||||
logrus.SetFormatter(&logrus.JSONFormatter{})
|
||||
logrus.SetFormatter(&logrus.JSONFormatter{TimestampFormat: "2006-01-02T15:04:05.000Z"})
|
||||
case "text":
|
||||
logrus.SetFormatter(&logrus.TextFormatter{})
|
||||
default:
|
||||
|
||||
@@ -46,7 +46,7 @@ var root = &cobra.Command{
|
||||
case "pfxlog":
|
||||
logrus.SetFormatter(pfxlog.NewFormatterStartingToday())
|
||||
case "json":
|
||||
logrus.SetFormatter(&logrus.JSONFormatter{})
|
||||
logrus.SetFormatter(&logrus.JSONFormatter{TimestampFormat: "2006-01-02T15:04:05.000Z"})
|
||||
case "text":
|
||||
logrus.SetFormatter(&logrus.TextFormatter{})
|
||||
default:
|
||||
|
||||
@@ -43,7 +43,7 @@ var root = &cobra.Command{
|
||||
case "pfxlog":
|
||||
logrus.SetFormatter(pfxlog.NewFormatterStartingToday())
|
||||
case "json":
|
||||
logrus.SetFormatter(&logrus.JSONFormatter{})
|
||||
logrus.SetFormatter(&logrus.JSONFormatter{TimestampFormat: "2006-01-02T15:04:05.000Z"})
|
||||
case "text":
|
||||
logrus.SetFormatter(&logrus.TextFormatter{})
|
||||
default:
|
||||
|
||||
@@ -42,7 +42,7 @@ var root = &cobra.Command{
|
||||
case "pfxlog":
|
||||
logrus.SetFormatter(pfxlog.NewFormatterStartingToday())
|
||||
case "json":
|
||||
logrus.SetFormatter(&logrus.JSONFormatter{})
|
||||
logrus.SetFormatter(&logrus.JSONFormatter{TimestampFormat: "2006-01-02T15:04:05.000Z"})
|
||||
case "text":
|
||||
logrus.SetFormatter(&logrus.TextFormatter{})
|
||||
default:
|
||||
|
||||
@@ -78,7 +78,7 @@ func rootPreRun(cmd *cobra.Command, _ []string) {
|
||||
case "pfxlog":
|
||||
logrus.SetFormatter(pfxlog.NewFormatterStartingToday())
|
||||
case "json":
|
||||
logrus.SetFormatter(&logrus.JSONFormatter{})
|
||||
logrus.SetFormatter(&logrus.JSONFormatter{TimestampFormat: "2006-01-02T15:04:05.000Z"})
|
||||
case "text":
|
||||
logrus.SetFormatter(&logrus.TextFormatter{})
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user