Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
Fix logs (#62)
Browse files Browse the repository at this point in the history
* Log to AppData, because "program files" is read only

* Update version
  • Loading branch information
DRSchlaubi authored Jun 26, 2022
1 parent 308d64c commit 9e68e65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ plugins {
}

group = "dev.nycode"
version = "0.6.1"
version = "0.6.2"

repositories {
google()
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
</appender>

<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logs/logFile.log</file>
<file>${APPDATA}/omsi-launcher/logs/logFile.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>logs/logFile.%d{yyyy-MM-dd}.log</fileNamePattern>
<fileNamePattern>${APPDATA}/omsi-launcher/logs/logFile.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- keep 30 days' worth of history capped at 3GB total size -->
<maxHistory>30</maxHistory>
<totalSizeCap>3GB</totalSizeCap>
Expand Down

0 comments on commit 9e68e65

Please sign in to comment.