Skip to content

Commit

Permalink
log4j
Browse files Browse the repository at this point in the history
  • Loading branch information
turboFei committed Mar 15, 2024
1 parent 8e597f5 commit 7283be5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kyuubi-server/src/test/resources/log4j2-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<Configuration status="WARN">
<Properties>
<Property name="restAuditLogPath">target/rest-audit.log</Property>
<Property name="opAuditLogPath">target/operation-audit.log</Property>
</Properties>
<Appenders>
<Console name="stdout" target="SYSTEM_OUT">
Expand All @@ -39,6 +40,9 @@
<File name="restAudit" fileName="${sys:restAuditLogPath}">
<PatternLayout pattern="%d{HH:mm:ss.SSS} %p %c{1}: %m%n%ex"/>
</File>
<File name="opAudit" fileName="${sys:opAuditLogPath}">
<PatternLayout pattern="%d{HH:mm:ss.SSS} %p %c{1}: %m%n%ex"/>
</File>
</Appenders>
<Loggers>
<Root level="INFO">
Expand All @@ -48,6 +52,9 @@
<Logger name="org.apache.kyuubi.server.http.authentication.AuthenticationAuditLogger" additivity="false">
<AppenderRef ref="restAudit" />
</Logger>
<Logger name="org.apache.kyuubi.operation.OperationAuditLogger" additivity="false">
<AppenderRef ref="opAudit" />
</Logger>
<Logger name="org.apache.kyuubi.server.metadata.jdbc" level="DEBUG" additivity="false">
<AppenderRef ref="stdout" />
<AppenderRef ref="file"/>
Expand Down

0 comments on commit 7283be5

Please sign in to comment.