From 3a15cfeb3d6f0e8ff3d7057112f598456f0dd0b7 Mon Sep 17 00:00:00 2001 From: Seth Ladygo Date: Thu, 24 Jan 2019 22:59:59 -0800 Subject: [PATCH] Viz: use separate log config file --- build.gradle | 3 ++- src/main/resources/logback-viz.xml | 31 ++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/logback-viz.xml diff --git a/build.gradle b/build.gradle index 819d45b..1b6ed17 100644 --- a/build.gradle +++ b/build.gradle @@ -43,8 +43,9 @@ run { } task runViz(type: JavaExec) { + description = "Run the visualizer log processor" dependsOn classes - systemProperty 'logback.configurationFile', 'src/main/resources/logback.xml' + systemProperty 'logback.configurationFile', 'src/main/resources/logback-viz.xml' classpath sourceSets.main.runtimeClasspath main = 'Viz' } diff --git a/src/main/resources/logback-viz.xml b/src/main/resources/logback-viz.xml new file mode 100644 index 0000000..37bf9ac --- /dev/null +++ b/src/main/resources/logback-viz.xml @@ -0,0 +1,31 @@ + + + + + + + + true + + %highlight(%-5level) %cyan(%logger{15}) - %msg %n + + + + + + logs/viz-converter.log + false + + %date %-5level %logger{35}: %msg%n + + + + + + + +