Skip to content

Commit

Permalink
chore(files): Set appropriate path for logs and storage on the computer
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentixx committed Oct 10, 2023
1 parent 1420ac1 commit 488ca63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ private val logger = KotlinLogging.logger {}
object TemplateStorageService {

private val mapper = jacksonObjectMapper()
private val file = File("templates.json")
private val file = File(System.getProperty("user.home"), "KFileBuilder" + File.separator + "templates.json")

init {
if (!file.exists()) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</appender>

<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>latest_logs.txt</file>
<file>${user.home}/KFileBuilder/latest_logs.txt</file>
<append>false</append>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%level] [%thread] [%logger{0}] %msg%n</pattern>
Expand Down

0 comments on commit 488ca63

Please sign in to comment.