mirror of
https://github.com/corda/corda.git
synced 2024-12-30 01:39:04 +00:00
6dd33fb8f7
Major changes due to JDK 17: 1. JDK17 JCE Provider now has built-in support for eddsas, corda uses the bouncycastle (i2p) implementation. This PR removes the conflicting algorithms from the built-in JCE provider. 2. JavaScript scripting has been removed from the JDK, the corda log4j config was using scripting to conditionally output additional diagnostic info if the MDC was populated. This PR has removed the scripting. 3. The artifactory plug-ins used are now deprecated, this PR has removed them and uses the same code as Corda 5 for publishing to artifactory. 4. Javadoc generation has been modified to use the latest dokka plug-ins. 5. Gradle 7.6 has implemented an incredibly annoying change where transitive dependencies are not put on the compile classpath, so that they have to be explicitly added as dependencies to projects. 6. Mockito has been updated, which sadly meant that quite a few source files have to changes to use the new (org.mockito.kotlin) package name. This makes this PR appear much larger than it is. 7. A number of tests have been marked as ignored to get a green, broadly they fall into 3 classes. The first is related to crypto keypair tests, it appears some logic in the JDK prefers to use the SunJCE implementation and we prefer to use bouncycastle. I believe this issue can be fixed with better test setup. The second group is related to our use of a method called "uncheckedCast(..)", the purpose of this method was to get rid of the annoying unchecked cast compiler warning that would otherwise exist. It looks like the Kotlin 1.9 compiler type inference differs and at runtime sometimes the type it infers is "Void" which causes an exception at runtime. The simplest solution is to use an explicit cast instead of unchecked cast, Corda 5 have removed unchecked cast from their codebase. The third class are a number of ActiveMQ tests which appear to have a memory leak somewhere.
163 lines
7.4 KiB
XML
163 lines
7.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<Configuration status="info" shutdownHook="disable">
|
|
|
|
<Properties>
|
|
<Property name="log_path">${sys:log-path:-logs}</Property>
|
|
<Property name="log_name">node-${hostName}</Property>
|
|
<Property name="diagnostic_log_name">diagnostic-${hostName}</Property>
|
|
<Property name="archive">${log_path}/archive</Property>
|
|
<Property name="default_log_level">${sys:defaultLogLevel:-info}</Property>
|
|
<Property name="console_log_level">${sys:consoleLogLevel:-error}</Property>
|
|
</Properties>
|
|
|
|
<Appenders>
|
|
<!-- The default console appender - prints no exception information -->
|
|
<Console name="Console-Appender" target="SYSTEM_OUT">
|
|
<PatternLayout
|
|
pattern="%highlight{[%level{length=5}] %date{HH:mm:ssZ} [%t] %c{2}.%method - %msg%n%throwable{0}}{INFO=white,WARN=red,FATAL=bright red}"/>
|
|
</Console>
|
|
|
|
<!-- The console appender when debug or trace level logging is specified. Prints full stack trace -->
|
|
<Console name="Console-Debug-Appender" target="SYSTEM_OUT">
|
|
<PatternLayout
|
|
pattern="%highlight{[%level{length=5}] %date{HH:mm:ssZ} [%t] %c{2}.%method - %msg%n%throwable{}}{INFO=white,WARN=red,FATAL=bright red}"/>
|
|
</Console>
|
|
|
|
<!-- Required for printBasicInfo -->
|
|
<Console name="Console-Appender-Println" target="SYSTEM_OUT">
|
|
<PatternLayout pattern="%msg%n%throwable{0}" />
|
|
</Console>
|
|
|
|
<!-- Will generate up to 500 log files for a given day. Adjust this number according to the available storage.
|
|
During every rollover it will delete those that are older than 60 days, but keep the most recent 10 GB -->
|
|
<RollingRandomAccessFile name="RollingFile-Appender"
|
|
fileName="${log_path}/${log_name}.log"
|
|
filePattern="${archive}/${log_name}.%date{yyyy-MM-dd}-%i.log.gz">
|
|
|
|
<PatternLayout pattern="[%-5level] %date{ISO8601}{UTC}Z [%t] %c{2}.%method - %msg%n"/>
|
|
|
|
<Policies>
|
|
<TimeBasedTriggeringPolicy/>
|
|
<SizeBasedTriggeringPolicy size="100MB"/>
|
|
</Policies>
|
|
|
|
<DefaultRolloverStrategy min="1" max="500">
|
|
<Delete basePath="${archive}" maxDepth="1">
|
|
<IfFileName glob="${log_name}*.log.gz"/>
|
|
<IfLastModified age="60d">
|
|
<IfAny>
|
|
<IfAccumulatedFileSize exceeds="10 GB"/>
|
|
</IfAny>
|
|
</IfLastModified>
|
|
</Delete>
|
|
</DefaultRolloverStrategy>
|
|
|
|
</RollingRandomAccessFile>
|
|
|
|
<!-- Will generate up to 100 log files for a given day. During every rollover it will delete
|
|
those that are older than 60 days, but keep the most recent 10 GB -->
|
|
<RollingRandomAccessFile name="Diagnostic-RollingFile-Appender"
|
|
fileName="${log_path}/${diagnostic_log_name}.log"
|
|
filePattern="${archive}/${diagnostic_log_name}.%date{yyyy-MM-dd}-%i.log.gz">
|
|
|
|
<PatternLayout pattern="[%-5level] %date{ISO8601}{UTC}Z [%t] %c{2}.%method - %msg%n"/>
|
|
|
|
<Policies>
|
|
<TimeBasedTriggeringPolicy/>
|
|
<SizeBasedTriggeringPolicy size="100MB"/>
|
|
</Policies>
|
|
|
|
<DefaultRolloverStrategy min="1" max="100">
|
|
<Delete basePath="${archive}" maxDepth="1">
|
|
<IfFileName glob="${diagnostic_log_name}*.log.gz"/>
|
|
<IfLastModified age="60d">
|
|
<IfAny>
|
|
<IfAccumulatedFileSize exceeds="10 GB"/>
|
|
</IfAny>
|
|
</IfLastModified>
|
|
</Delete>
|
|
</DefaultRolloverStrategy>
|
|
|
|
</RollingRandomAccessFile>
|
|
|
|
<RollingFile name="Checkpoint-Agent-RollingFile-Appender"
|
|
fileName="${log_path}/checkpoints_agent-${date:yyyyMMdd-HHmmss}.log"
|
|
filePattern="${archive}/checkpoints_agent.%date{yyyy-MM-dd}-%i.log.gz">
|
|
|
|
<PatternLayout pattern="[%-5level] %date{ISO8601}{UTC}Z [%t] %c{2}.%method - %msg%n"/>
|
|
|
|
<Policies>
|
|
<TimeBasedTriggeringPolicy/>
|
|
<SizeBasedTriggeringPolicy size="100MB"/>
|
|
</Policies>
|
|
|
|
<DefaultRolloverStrategy min="1" max="100">
|
|
<Delete basePath="${archive}" maxDepth="1">
|
|
<IfFileName glob="checkpoints_agent*.log.gz"/>
|
|
<IfLastModified age="60d">
|
|
<IfAny>
|
|
<IfAccumulatedFileSize exceeds="10 GB"/>
|
|
</IfAny>
|
|
</IfLastModified>
|
|
</Delete>
|
|
</DefaultRolloverStrategy>
|
|
|
|
</RollingFile>
|
|
|
|
<Rewrite name="Console-ErrorCode-Selector">
|
|
<AppenderRef ref="Console-Appender"/>
|
|
</Rewrite>
|
|
|
|
<Rewrite name="Console-ErrorCode-Appender-Println">
|
|
<AppenderRef ref="Console-Appender-Println"/>
|
|
</Rewrite>
|
|
|
|
<Rewrite name="RollingFile-ErrorCode-Appender">
|
|
<AppenderRef ref="RollingFile-Appender"/>
|
|
</Rewrite>
|
|
<Rewrite name="Diagnostic-RollingFile-ErrorCode-Appender">
|
|
<AppenderRef ref="Diagnostic-RollingFile-Appender"/>
|
|
</Rewrite>
|
|
</Appenders>
|
|
|
|
<Loggers>
|
|
<Root level="${default_log_level}">
|
|
<AppenderRef ref="Console-ErrorCode-Selector" level="${console_log_level}"/>
|
|
<AppenderRef ref="RollingFile-ErrorCode-Appender"/>
|
|
</Root>
|
|
<Logger name="BasicInfo" additivity="false">
|
|
<AppenderRef ref="Console-ErrorCode-Appender-Println"/>
|
|
<AppenderRef ref="RollingFile-ErrorCode-Appender"/>
|
|
</Logger>
|
|
<Logger name="org.hibernate" level="warn" additivity="false">
|
|
<AppenderRef ref="Diagnostic-RollingFile-ErrorCode-Appender"/>
|
|
</Logger>
|
|
<Logger name="org.hibernate.SQL" level="info" additivity="false">
|
|
<AppenderRef ref="Console-ErrorCode-Selector"/>
|
|
<AppenderRef ref="RollingFile-ErrorCode-Appender"/>
|
|
</Logger>
|
|
<Logger name="org.apache.activemq.artemis.core.server" level="warn" additivity="false">
|
|
<AppenderRef ref="Console-ErrorCode-Selector">
|
|
<Filters>
|
|
<RegexFilter regex=".*AMQ222061.*" onMatch="DENY" onMismatch="NEUTRAL"/>
|
|
<RegexFilter regex=".*AMQ222107.*" onMatch="DENY" onMismatch="NEUTRAL"/>
|
|
<RegexFilter regex=".*AMQ222165.*" onMatch="DENY" onMismatch="NEUTRAL"/>
|
|
<RegexFilter regex=".*AMQ222166.*" onMatch="DENY" onMismatch="NEUTRAL"/>
|
|
</Filters>
|
|
</AppenderRef>
|
|
<AppenderRef ref="RollingFile-ErrorCode-Appender"/>
|
|
</Logger>
|
|
<Logger name="org.apache.activemq.audit" level="error" additivity="false">
|
|
<AppenderRef ref="Console-ErrorCode-Selector"/>
|
|
<AppenderRef ref="RollingFile-ErrorCode-Appender"/>
|
|
</Logger>
|
|
<Logger name="org.jolokia" additivity="true" level="warn">
|
|
<AppenderRef ref="Console-ErrorCode-Appender-Println"/>
|
|
<AppenderRef ref="RollingFile-ErrorCode-Appender"/>
|
|
</Logger>
|
|
<Logger name="CheckpointAgent" level="debug" additivity="false">
|
|
<AppenderRef ref="Checkpoint-Agent-RollingFile-Appender"/>
|
|
</Logger>
|
|
</Loggers>
|
|
</Configuration>
|