Add logback file appender
This commit is contained in:
parent
46a078e9c5
commit
7cdd5297ac
5
.gitignore
vendored
5
.gitignore
vendored
@ -33,4 +33,7 @@ out/
|
|||||||
/.nb-gradle/
|
/.nb-gradle/
|
||||||
|
|
||||||
### VS Code ###
|
### VS Code ###
|
||||||
.vscode/
|
.vscode/
|
||||||
|
|
||||||
|
|
||||||
|
/logs/
|
@ -1,12 +1,29 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
|
<timestamp key="bySecond" datePattern="yyyyMMdd'T'HHmmss"/>
|
||||||
|
|
||||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||||
<encoder>
|
<encoder>
|
||||||
<pattern>%d{YYYY-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
<pattern>%d{YYYY-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||||
</encoder>
|
</encoder>
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
<root level="trace">
|
<root level="trace">
|
||||||
<appender-ref ref="STDOUT"/>
|
<appender-ref ref="STDOUT"/>
|
||||||
</root>
|
</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="org.eclipse.jetty" level="INFO"/>
|
||||||
<logger name="io.netty" level="INFO"/>
|
<logger name="io.netty" level="INFO"/>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -3,7 +3,6 @@ content_type: magprog_mentor
|
|||||||
name: Зиновьев Алексей Викторович
|
name: Зиновьев Алексей Викторович
|
||||||
id: Zinoviev
|
id: Zinoviev
|
||||||
photo: Zinoviev.jpg
|
photo: Zinoviev.jpg
|
||||||
published: false
|
|
||||||
language: ru
|
language: ru
|
||||||
---
|
---
|
||||||
#### Организация
|
#### Организация
|
||||||
|
Loading…
Reference in New Issue
Block a user