Skip to content

Commit

Permalink
fix(win): fix plugin startup / use FileAppender (#45)
Browse files Browse the repository at this point in the history
issues on reading the plugin startup message when using system threads
over tokio tasks, seem to be due to the RollingFileAppender
  • Loading branch information
YOU54F authored Aug 30, 2024
1 parent 9fcd515 commit 22a3cda
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions modules/plugin/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,8 @@
</encoder>
</appender>

<appender name="PLAIN_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<appender name="PLAIN_FILE" class="ch.qos.logback.core.FileAppender">
<file>logs/plugin.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>logs/plugin.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 50MB -->
<maxFileSize>50MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
<!-- keep 30 days' worth of history -->
<maxHistory>30</maxHistory>
</rollingPolicy>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{50}:%line - %message%n%xException{10}</pattern>
</encoder>
Expand Down

0 comments on commit 22a3cda

Please sign in to comment.