From 33bec1f4e3b0c824555e23b3681450709822ef76 Mon Sep 17 00:00:00 2001 From: Daniel Silverthorn Date: Wed, 30 May 2018 13:44:20 -0400 Subject: Add gizmo logback in local Change-Id: I024dd5aaba04f15169e19be008a6aa7c88fbc706 Issue-ID: AAI-1180 Signed-off-by: Daniel Silverthorn --- bundleconfig-local/etc/logback.xml | 179 +++++++++++++++++++++++++++++++++++++ pom.xml | 7 ++ src/main/docker/Dockerfile | 3 + 3 files changed, 189 insertions(+) create mode 100644 bundleconfig-local/etc/logback.xml diff --git a/bundleconfig-local/etc/logback.xml b/bundleconfig-local/etc/logback.xml new file mode 100644 index 0000000..a04d44c --- /dev/null +++ b/bundleconfig-local/etc/logback.xml @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + + + + + + + + + ${errorLogPattern} + + + + + + + + + + + ${logDirectory}/${generalLogName}.log + + ${logDirectory}/${generalLogName}.%d{yyyy-MM-dd}.log.zip + + 60 + + + ${errorLogPattern} + + + + + + INFO + + 256 + + + + + + + + ${logDirectory}/${auditLogName}.log + + ${logDirectory}/${auditLogName}.%d{yyyy-MM-dd}.log.zip + + 60 + + + ${auditMetricPattern} + + + + 256 + + + + + ${logDirectory}/${metricsLogName}.log + + ${logDirectory}/${metricsLogName}.%d{yyyy-MM-dd}.log.zip + + 60 + + + + ${auditMetricPattern} + + + + + + 256 + + + + + ${logDirectory}/${debugLogName}.log + + ${logDirectory}/${debugLogName}.%d{yyyy-MM-dd}.log.zip + + 60 + + + ${errorLogPattern} + + + + + 256 + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pom.xml b/pom.xml index d4d63dd..a6af37a 100644 --- a/pom.xml +++ b/pom.xml @@ -327,6 +327,13 @@ limitations under the License. **/* + + ${basedir} + true + + bundleconfig-local/** + + ${basedir}/src/main/bin/ diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile index b76edfe..c643b2e 100644 --- a/src/main/docker/Dockerfile +++ b/src/main/docker/Dockerfile @@ -15,9 +15,12 @@ RUN export JAVA_HOME # Build up the deployment folder structure RUN mkdir -p $MICRO_HOME +RUN mkdir -p $MICRO_HOME/bundleconfig/etc COPY gizmo.jar $MICRO_HOME/ RUN mkdir -p $BIN_HOME COPY *.sh $BIN_HOME +COPY bundleconfig-local $MICRO_HOME/bundleconfig +COPY bundleconfig-local/etc/logback.xml $MICRO_HOME/bundleconfig/etc RUN chmod 755 $BIN_HOME/* RUN ln -s /logs $MICRO_HOME/logs -- cgit 1.2.3-korg