Skip to content

Commit

Permalink
Use logging.file.name instead of deprecated property
Browse files Browse the repository at this point in the history
Fixes #1931
Co-authored-by: axel1200 <alexander.von.trostorff@gmail.com>
  • Loading branch information
Sheikah45 committed Sep 27, 2020
1 parent c47b43c commit 56af80b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ public class PreferencesService implements InitializingBean {
}
CACHE_DIRECTORY = FAF_DATA_DIRECTORY.resolve(CACHE_SUB_FOLDER);

System.setProperty("logging.file", PreferencesService.FAF_DATA_DIRECTORY
System.setProperty("logging.file.name", PreferencesService.FAF_DATA_DIRECTORY
.resolve("logs")
.resolve("downlords-faf-client.log")
.resolve("client.log")
.toString());
// duplicated, see getFafLogDirectory; make getFafLogDirectory or log dir static?

Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,4 @@ logging:
com.faforever.client.os: info
com.faforever.client.fa.relay.ice: info
com.faforever.client.fx: info
config: classpath:logback-spring.xml
File renamed without changes.

0 comments on commit 56af80b

Please sign in to comment.