Skip to content

Commit

Permalink
add log4j pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
turboFei committed Dec 9, 2022
1 parent 697f02f commit db783ea
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions kyuubi-server/src/test/resources/log4j2-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,22 @@
<RegexFilter regex=".*Thrift error occurred during processing of message.*" onMatch="DENY" onMismatch="NEUTRAL"/>
</Filters>
</File>
<RollingFile name="auditLog" fileName="target/rest-audit.log"
filePattern="target/rest-audit-%d{yyyy-MM-dd}-%i.log">
<PatternLayout pattern="%d{HH:mm:ss.SSS} %t %p %c{1}: %m%n"/>
<Policies>
<SizeBasedTriggeringPolicy size="19500KB" />
</Policies>
<DefaultRolloverStrategy max="10"/>
</RollingFile>
</Appenders>
<Loggers>
<Root level="INFO">
<AppenderRef ref="stdout"/>
<AppenderRef ref="file"/>
</Root>
<Logger name="org.apache.kyuubi.server.http.authentication.AuthenticationAuditLogger" additivity="false">
<AppenderRef ref="auditLog" />
</Logger>
</Loggers>
</Configuration>

0 comments on commit db783ea

Please sign in to comment.