-
Notifications
You must be signed in to change notification settings - Fork 23
/
log4j2.xml
30 lines (27 loc) · 1002 Bytes
/
log4j2.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Appenders>
<!-- File Appender for Console Logs -->
<Console name="Console" target="SYSTEM_ERR">
<PatternLayout pattern="%d{yyy-MM-dd HH:mm:ss.SSS} %p %logger{36} %F:%L: %msg%n"/>
</Console>
<!-- File Appender for Debug Logs -->
<File name="File" fileName="${sys:logFilePath:-.logs/app.log}">
<PatternLayout pattern="%d{yyy-MM-dd HH:mm:ss.SSS} %p %logger{36} %F:%L: %msg%n"/>
</File>
</Appenders>
<Loggers>
<Root level="ERROR">
<AppenderRef ref="Console"/>
</Root>
</Loggers>
<Loggers>
<logger name="org.htmlunit" level="ERROR"/>
<logger name="com.networknt.schema" level="ERROR"/>
<logger name="io.shiftleft" level="WARN"/>
<logger name="io.joern" level="WARN"/>
<Root level="DEBUG">
<AppenderRef ref="File"/>
</Root>
</Loggers>
</Configuration>