You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by or...@apache.org on 2021/02/09 12:35:53 UTC
[qpid-broker-j] branch 8.0.x updated: QPID-8505:[Broker-J] Change
the date/time format to rfc3339 UTC representation in the default logging
layouts
This is an automated email from the ASF dual-hosted git repository.
orudyy pushed a commit to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/qpid-broker-j.git
The following commit(s) were added to refs/heads/8.0.x by this push:
new 7f37f6c QPID-8505:[Broker-J] Change the date/time format to rfc3339 UTC representation in the default logging layouts
7f37f6c is described below
commit 7f37f6c463e27f2a0899fc22fb7c03ff61812a6c
Author: Dedeepya T <de...@yahoo.co.in>
AuthorDate: Tue Feb 9 16:33:41 2021 +0530
QPID-8505:[Broker-J] Change the date/time format to rfc3339 UTC representation in the default logging layouts
This closes #80
---
.../org/apache/qpid/server/logging/logback/BrokerConsoleLogger.java | 2 +-
.../java/org/apache/qpid/server/logging/logback/BrokerFileLogger.java | 2 +-
.../org/apache/qpid/server/logging/logback/VirtualHostFileLogger.java | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/broker-plugins/logging-logback/src/main/java/org/apache/qpid/server/logging/logback/BrokerConsoleLogger.java b/broker-plugins/logging-logback/src/main/java/org/apache/qpid/server/logging/logback/BrokerConsoleLogger.java
index a9f4c6a..05dda21 100644
--- a/broker-plugins/logging-logback/src/main/java/org/apache/qpid/server/logging/logback/BrokerConsoleLogger.java
+++ b/broker-plugins/logging-logback/src/main/java/org/apache/qpid/server/logging/logback/BrokerConsoleLogger.java
@@ -29,7 +29,7 @@ public interface BrokerConsoleLogger<X extends BrokerConsoleLogger<X>> extends B
{
String TYPE = "Console";
- @ManagedAttribute(defaultValue = "%date %-5level [%thread] \\(%logger{2}\\) - %msg%n")
+ @ManagedAttribute(defaultValue = "%date{\"yyyy-MM-dd'T'HH:mm:ss,SSSXXX\", UTC} %-5level [%thread] \\(%logger{2}\\) - %msg%n")
String getLayout();
@ManagedAttribute(defaultValue = "STDOUT", validValues = {"org.apache.qpid.server.logging.logback.BrokerConsoleLoggerImpl#getAllConsoleStreamTarget()"})
diff --git a/broker-plugins/logging-logback/src/main/java/org/apache/qpid/server/logging/logback/BrokerFileLogger.java b/broker-plugins/logging-logback/src/main/java/org/apache/qpid/server/logging/logback/BrokerFileLogger.java
index 017773c..f2237f1 100644
--- a/broker-plugins/logging-logback/src/main/java/org/apache/qpid/server/logging/logback/BrokerFileLogger.java
+++ b/broker-plugins/logging-logback/src/main/java/org/apache/qpid/server/logging/logback/BrokerFileLogger.java
@@ -62,7 +62,7 @@ public interface BrokerFileLogger<X extends BrokerFileLogger<X>> extends BrokerL
@ManagedAttribute( defaultValue = "100")
int getMaxFileSize();
- @ManagedAttribute(defaultValue = "%date %-5level [%thread] \\(%logger{2}\\) - %msg%n")
+ @ManagedAttribute(defaultValue = "%date{\"yyyy-MM-dd'T'HH:mm:ss,SSSXXX\", UTC} %-5level [%thread] \\(%logger{2}\\) - %msg%n")
String getLayout();
@DerivedAttribute
diff --git a/broker-plugins/logging-logback/src/main/java/org/apache/qpid/server/logging/logback/VirtualHostFileLogger.java b/broker-plugins/logging-logback/src/main/java/org/apache/qpid/server/logging/logback/VirtualHostFileLogger.java
index 53c44d6..6a85ac5 100644
--- a/broker-plugins/logging-logback/src/main/java/org/apache/qpid/server/logging/logback/VirtualHostFileLogger.java
+++ b/broker-plugins/logging-logback/src/main/java/org/apache/qpid/server/logging/logback/VirtualHostFileLogger.java
@@ -61,7 +61,7 @@ public interface VirtualHostFileLogger<X extends VirtualHostFileLogger<X>> exten
@ManagedAttribute( defaultValue = "100")
int getMaxFileSize();
- @ManagedAttribute(defaultValue = "%date %-5level [%thread] \\(%logger{2}\\) - %msg%n")
+ @ManagedAttribute(defaultValue = "%date{\"yyyy-MM-dd'T'HH:mm:ss,SSSXXX\", UTC} %-5level [%thread] \\(%logger{2}\\) - %msg%n")
String getLayout();
@DerivedAttribute
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org