From e9c33a45a574f52bbe146d67994960c8d06d32b6 Mon Sep 17 00:00:00 2001
From: paulbourelly999 <77466294+paulbourelly999@users.noreply.github.com>
Date: Mon, 18 Mar 2024 09:06:08 -0400
Subject: [PATCH] CDAR-593: Update CDASim logging configuration to reduce log
file size (#327)
# PR Details
## Description
Cherry picked CDASim logging changes from
https://github.com/usdot-fhwa-stol/carma-config/pull/325
## Related Issue
## Motivation and Context
Reduce CDASim log file size
## How Has This Been Tested?
## Types of changes
- [ ] Defect fix (non-breaking change that fixes an issue)
- [x] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that cause existing functionality
to change)
## Checklist:
- [ ] I have added any new packages to the sonar-scanner.properties file
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [x] I have read the **CONTRIBUTING** document.
[CARMA Contributing
Guide](https://github.com/usdot-fhwa-stol/carma-platform/blob/develop/Contributing.md)
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
---
.../cdasim_config/cdasim/logback.xml | 54 ++++++++++---------
ail_vru_uc1_scenario/docker-compose.yml | 1 +
2 files changed, 29 insertions(+), 26 deletions(-)
diff --git a/ail_vru_uc1_scenario/cdasim_config/cdasim/logback.xml b/ail_vru_uc1_scenario/cdasim_config/cdasim/logback.xml
index 7b0092ca..1fbf3eaf 100755
--- a/ail_vru_uc1_scenario/cdasim_config/cdasim/logback.xml
+++ b/ail_vru_uc1_scenario/cdasim_config/cdasim/logback.xml
@@ -7,7 +7,7 @@
- %date %-5level %logger{0} - %msg%n
+ %date %-5level %C{0}:%line - %msg%n
@@ -26,7 +26,7 @@
UTF-8
${logDirectory}/MOSAIC.log
- %date %-5level %logger{0} - %msg%n
+ %date %-5level %C{0}:%line - %msg%n
@@ -35,15 +35,16 @@
UTF-8
${logDirectory}/Mapping.log
- %date %-5level %logger{0} - %msg%n
+ %date %-5level %C{0}:%line - %msg%n
UTF-8
${logDirectory}/Application.log
+ true
- %date %-5level %logger{0} - %msg%n
+ %date %-5level %C{0}:%line - %msg%n
@@ -67,55 +68,55 @@
true
${logDirectory}/Navigation.log
- %date %-5level %logger{0} - %msg%n
+ %date %-5level %C{0}:%line - %msg%n
UTF-8
${logDirectory}/Traffic.log
- %date %-5level %logger{0} - %msg%n
+ %date %-5level %C{0}:%line - %msg%n
UTF-8
${logDirectory}/Carla.log
- %date %-5level %logger{0} - %msg%n
+ %date %-5level %C{0}:%line - %msg%n
UTF-8
${logDirectory}/Carma.log
- %date %-5level %logger{0} - %msg%n
+ %date %-5level %C{0}:%line - %msg%n
UTF-8
${logDirectory}/Infrastructure.log
- %date %-5level %logger{0} - %msg%n
+ %date %-5level %C{0}:%line - %msg%n
UTF-8
${logDirectory}/Environment.log
- %date %-5level %logger{0} - %msg%n
+ %date %-5level %C{0}:%line - %msg%n
UTF-8
${logDirectory}/Communication.log
- %date %-5level %logger{0} - %msg%n
+ %date %-5level %C{0}:%line - %msg%n
${logDirectory}/CommunicationDetails.log
- %date %-5level %logger{0} - %msg%n
+ %date %-5level %C{0}:%line - %msg%n
false
@@ -123,7 +124,7 @@
UTF-8
${logDirectory}/Cell.log
- %date %-5level %logger{0} - %msg%n
+ %date %-5level %C{0}:%line - %msg%n
@@ -131,17 +132,18 @@
UTF-8
${logDirectory}/RuntimeEvents.csv
- %date %-5level %logger{0} [%thread] - %msg%n
+ %date %-5level %C{0}:%line [%thread] - %msg%n
-
+
+
-
+
@@ -175,25 +177,25 @@
-
+
-
+
-
+
-
+
-
+
-
+
@@ -201,11 +203,11 @@
-
+
-
+
@@ -213,7 +215,7 @@
-
+
@@ -224,7 +226,7 @@
-
+
diff --git a/ail_vru_uc1_scenario/docker-compose.yml b/ail_vru_uc1_scenario/docker-compose.yml
index 985c073e..91261fce 100644
--- a/ail_vru_uc1_scenario/docker-compose.yml
+++ b/ail_vru_uc1_scenario/docker-compose.yml
@@ -14,6 +14,7 @@ services:
- /tmp/.X11-unix:/tmp/.X11-unix
- /opt/carma-simulation/logs:/opt/carma-simulation/logs
- ./carla-recorder/:/app/scenario_runner/metrics/data/
+ - ./cdasim/logback.xml:/opt/carma-simulation/etc/logback.xml
deploy:
resources:
reservations: