Skip to content

Commit

Permalink
Load logback for windows (#50)
Browse files Browse the repository at this point in the history
Load logback.xml for windows from given path in config.

Signed-off-by: Amit-Singh40 <[email protected]>
  • Loading branch information
Amit-Singh40 authored Feb 2, 2024
1 parent 13d830f commit 4a226dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion windows-service/PravegaSensorCollectorApp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
<description>Pravega Sensor Collector collects data from sensors and ingests the data into Pravega streams</description>
<executable>"C:/Program Files/Java/jdk-11/bin/java"</executable>
<arguments>-Xmx512m -jar "windows-service\PSCFiles\pravega-sensor-collector-0.2.15.jar"</arguments>


<!-- Use the below commented tag to load custom logback.xml -->

<!-- <arguments>-Xmx512m -Dlogback.configurationFile=.\logback.xml -jar "windows-service\PSCFiles\pravega-sensor-collector-0.2.15.jar"</arguments> -->

<!-- old log files are truncated when service restarts. Can change logmode to append, roll-by-size and roll-by-time -->
<logmode>reset</logmode>

Expand Down

0 comments on commit 4a226dc

Please sign in to comment.