Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] logback.xml 로그 수집 레벨 수정 #139

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion server/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,23 @@
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<logger name="com.talkka.server" level="DEBUG" additivity="false">
<!-- OUT_OF_SERVICE -->
<appender name="FILE-OUT" class="ch.qos.logback.core.rolling.RollingFileAppender">
<append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${LOG_PATH}/api-server.%d{yyyy-MM-dd}.all.log</fileNamePattern>
<maxHistory>${logging.application.file.max-history:-1}</maxHistory>
<maxFileSize>${logging.application.file.max-size:-10MB}</maxFileSize>
</rollingPolicy>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="STDOUT"/>
<appender-ref ref="FILE-OUT"/>
</root>
<logger name="com.talkka.server" level="DEBUG" additivity="false">
<appender-ref ref="FILE"/>
<appender-ref ref="FILE-ERROR"/>
</logger>
Expand Down
Loading