Skip to content

Commit

Permalink
fix(win): fix plugin startup / use FileAppender
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 committed Aug 21, 2024
1 parent abc10e8 commit 2516e3e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions modules/plugin/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,15 @@
</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 -->
<!-- <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<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>
</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 2516e3e

Please sign in to comment.