1
0
forked from SPC/spc-site

Add logback file appender

This commit is contained in:
Alexander Nozik 2022-05-05 15:46:54 +03:00
parent 46a078e9c5
commit 7cdd5297ac
3 changed files with 21 additions and 2 deletions

3
.gitignore vendored
View File

@ -34,3 +34,6 @@ out/
### VS Code ###
.vscode/
/logs/

View File

@ -1,12 +1,29 @@
<configuration>
<timestamp key="bySecond" datePattern="yyyyMMdd'T'HHmmss"/>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{YYYY-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="trace">
<appender-ref ref="STDOUT"/>
</root>
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<!-- use the previously created timestamp to create a uniquely
named log file -->
<file>logs/${bySecond}.txt</file>
<encoder>
<pattern>%d{YYYY-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="DEBUG">
<appender-ref ref="FILE" />
</root>
<logger name="org.eclipse.jetty" level="INFO"/>
<logger name="io.netty" level="INFO"/>
</configuration>

View File

@ -3,7 +3,6 @@ content_type: magprog_mentor
name: Зиновьев Алексей Викторович
id: Zinoviev
photo: Zinoviev.jpg
published: false
language: ru
---
#### Организация