From a8a2dc9b50eb9f0c067a4524cde9e8a458d5657f Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Sun, 14 Feb 2021 03:05:23 +0100 Subject: Use profiles to avoid sending local logs to Loki --- sw-server/src/main/resources/logback-spring.xml | 47 +++++++++++++++++++++++++ sw-server/src/main/resources/logback.xml | 38 -------------------- 2 files changed, 47 insertions(+), 38 deletions(-) create mode 100644 sw-server/src/main/resources/logback-spring.xml delete mode 100644 sw-server/src/main/resources/logback.xml (limited to 'sw-server/src/main') diff --git a/sw-server/src/main/resources/logback-spring.xml b/sw-server/src/main/resources/logback-spring.xml new file mode 100644 index 00000000..07b9e58e --- /dev/null +++ b/sw-server/src/main/resources/logback-spring.xml @@ -0,0 +1,47 @@ + + + + + + + 1 + 10000 + + https://logs-prod-us-central1.grafana.net/loki/api/v1/push + + ${LOKI_USERNAME} + ${LOKI_PASSWORD} + + 15000 + + + + + timestamp=%date level=%level class=%logger thread=%thread | %msg %ex + + + + + + + + + + + + + + + + + + + + + diff --git a/sw-server/src/main/resources/logback.xml b/sw-server/src/main/resources/logback.xml deleted file mode 100644 index 766c0a5c..00000000 --- a/sw-server/src/main/resources/logback.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - 1 - 10000 - - https://logs-prod-us-central1.grafana.net/loki/api/v1/push - - ${LOKI_USERNAME} - ${LOKI_PASSWORD} - - 15000 - - - - - timestamp=%date level=%level class=%logger thread=%thread | %msg %ex - - - - - - - - - - - - -- cgit