From 27e17a95896feb9abcc9ea8c5296f5ba1a8fed24 Mon Sep 17 00:00:00 2001 From: Anastasiia_Gelmut Date: Sat, 20 Feb 2021 11:21:05 +0400 Subject: [PATCH] GONRG-1781 Added logback.xml and updated pom --- .../partition/logging/AuditLoggerTest.java | 17 +++++++++ provider/partition-gcp/pom.xml | 8 ++++- .../src/main/resources/logback.xml | 36 +++++++++++++++++++ 3 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 provider/partition-gcp/src/main/resources/logback.xml diff --git a/partition-core/src/test/java/org/opengroup/osdu/partition/logging/AuditLoggerTest.java b/partition-core/src/test/java/org/opengroup/osdu/partition/logging/AuditLoggerTest.java index 408c1f2..827c7c9 100644 --- a/partition-core/src/test/java/org/opengroup/osdu/partition/logging/AuditLoggerTest.java +++ b/partition-core/src/test/java/org/opengroup/osdu/partition/logging/AuditLoggerTest.java @@ -1,3 +1,20 @@ +/* + Copyright 2002-2021 Google LLC + Copyright 2002-2021 EPAM Systems, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + */ + package org.opengroup.osdu.partition.logging; import static org.mockito.ArgumentMatchers.any; diff --git a/provider/partition-gcp/pom.xml b/provider/partition-gcp/pom.xml index 5433518..7cc347a 100644 --- a/provider/partition-gcp/pom.xml +++ b/provider/partition-gcp/pom.xml @@ -25,7 +25,13 @@ org.opengroup.osdu core-lib-gcp - 0.3.25 + 0.6.1-SNAPSHOT + + + + ch.qos.logback.contrib + logback-json-classic + 0.1.5 diff --git a/provider/partition-gcp/src/main/resources/logback.xml b/provider/partition-gcp/src/main/resources/logback.xml new file mode 100644 index 0000000..e6bb61f --- /dev/null +++ b/provider/partition-gcp/src/main/resources/logback.xml @@ -0,0 +1,36 @@ + + + + + + + %yellow([%thread]) %highlight(| %-5level |) %green(%d) %cyan(| %logger{15} |) %highlight(%msg) %n + utf8 + + + + + + + + + + + + yyyy-MM-dd HH:mm:ss.SSS + Etc/UTC + true + + + false + + + + + + + + + + + \ No newline at end of file -- GitLab