e.ibis-adapterframework-core.7.9.5.source-code.log4j4ibis.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <log4j2:Configuration status="warn" name="${ctx:instance.name}" strict="true" xmlns="http://logging.apache.org/log4j/2.0/config" xmlns:log4j2="log4j-config.xsd" packages="nl.nn.adapterframework.logging"> <!-- https://logging.apache.org/log4j/2.x/manual/customloglevels.html --> <Appenders> <Appender name="stdout" type="Console"> <Layout type="IbisPatternLayout"> <Pattern>%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%t] %X{mid,cid} %c{2} - %m%n%xEx{short}</Pattern> </Layout> </Appender> <Appender name="systemout" type="Console"> <Layout type="PatternLayout"> <Pattern>%d{yyyy-MM-dd HH:mm:ss,SSS} - %m%n%xEx{short}</Pattern> </Layout> </Appender> <Appender name="file" type="RollingFile" fileName="${ctx:log.dir}/${ctx:instance.name.lc}.log" filePattern="${ctx:log.dir}/${ctx:instance.name.lc}.log.%i"> <Filters> <Filter type="IbisThreadFilter" onMatch="DENY" onMismatch="NEUTRAL" regex="${ctx:log.thread.rejectRegex:-}" /> </Filters> <Layout type="IbisPatternLayout"> <Pattern>%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%t] %X{mid,cid,adapter,pipe} %c{2} - %m%n%xEx{filters(${ctx:log.stacktrace.filters})}</Pattern> </Layout> <Policies> <Policy type="SizeBasedTriggeringPolicy" size="${ctx:log.maxFileSize}" /> </Policies> <RolloverStrategy type="DefaultRolloverStrategy" max="${ctx:log.maxBackupIndex}" fileIndex="min" /> </Appender> <Appender name="XML" type="RollingFile" fileName="${ctx:log.dir}/${ctx:instance.name.lc}_xml.log" filePattern="${ctx:log.dir}/${ctx:instance.name.lc}_xml.log.%i"> <Filters> <Filter type="IbisThreadFilter" onMatch="DENY" onMismatch="NEUTRAL" regex="${ctx:log.thread.rejectRegex:-}" /> </Filters> <Layout type="IbisXmlLayout" /> <Policies> <Policy type="SizeBasedTriggeringPolicy" size="${ctx:log.maxFileSize}" /> </Policies> <RolloverStrategy type="DefaultRolloverStrategy" max="${ctx:log.maxBackupIndex}" fileIndex="min" /> </Appender> <Appender name="msg-text" type="RollingFile" fileName="${ctx:log.dir}/${ctx:instance.name.lc}-messages.log" filePattern="${ctx:log.dir}/${ctx:instance.name.lc}-messages.log.%i" append="true"> <Layout type="PatternLayout" pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %m %TC %x%n"/> <Policies> <Policy type="SizeBasedTriggeringPolicy" size="${ctx:log.maxFileSize}" /> </Policies> <RolloverStrategy type="DefaultRolloverStrategy" max="${ctx:log.msg.maxBackupIndex}" fileIndex="min" /> </Appender> <Appender name="msg-json" type="RollingFile" fileName="${ctx:log.dir}/${ctx:instance.name.lc}-messages.json" filePattern="${ctx:log.dir}/${ctx:instance.name.lc}-messages.json.%i" append="true"> <JsonTemplateLayout eventTemplateUri="classpath:EcsLayout.json"/> <Policies> <Policy type="SizeBasedTriggeringPolicy" size="${ctx:log.maxFileSize}" /> </Policies> <RolloverStrategy type="DefaultRolloverStrategy" max="${ctx:log.msg.maxBackupIndex}" fileIndex="min" /> </Appender> <Appender name="security" type="RollingFile" fileName="${ctx:log.dir}/${ctx:instance.name.lc}-security.log" filePattern="${ctx:log.dir}/${ctx:instance.name.lc}-security.log.%i"> <Layout type="PatternLayout" pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %m%n"/> <Policies> <Policy type="SizeBasedTriggeringPolicy" size="${ctx:log.maxFileSize}" /> </Policies> <RolloverStrategy type="DefaultRolloverStrategy" max="${ctx:log.maxBackupIndex}" fileIndex="min" /> </Appender> <Appender name="heartbeat" type="RollingFile" fileName="${ctx:log.dir}/${ctx:instance.name.lc}-heartbeat.log" filePattern="${ctx:log.dir}/${ctx:instance.name.lc}-heartbeat.log.%i"> <Layout type="PatternLayout"> <Pattern>%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %m%n</Pattern> </Layout> <Policies> <Policy type="SizeBasedTriggeringPolicy" size="${ctx:log.maxFileSize}" /> </Policies> <RolloverStrategy type="DefaultRolloverStrategy" max="${ctx:log.maxBackupIndex}" fileIndex="min" /> </Appender> <Appender name="config" type="RollingFile" fileName="${ctx:log.dir}/${ctx:instance.name.lc}-config.xml" filePattern="${ctx:log.dir}/${ctx:instance.name.lc}-config.xml.%i"> <Layout type="PatternLayout"> <Pattern><event datetime="%d{yyyy-MM-dd HH:mm:ss,SSS}">%n%m%n</event></Pattern> </Layout> <Policies> <OnStartupTriggeringPolicy /> <SizeBasedTriggeringPolicy size="1MB" /> </Policies> <RolloverStrategy type="DefaultRolloverStrategy" max="5" fileIndex="min" /> </Appender> <Appender name="ladybug" type="RollingFile" fileName="${ctx:log.dir}/testtool4${ctx:instance.name.lc}.log" filePattern="${ctx:log.dir}/testtool4${ctx:instance.name.lc}.log.%i"> <Layout type="PatternLayout" pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%t] %c %m%n"/> <Policies> <Policy type="SizeBasedTriggeringPolicy" size="${ctx:log.maxFileSize}" /> </Policies> <RolloverStrategy type="DefaultRolloverStrategy" max="${ctx:log.maxBackupIndex}" fileIndex="min" /> </Appender> </Appenders> <Loggers> <Logger name="liquibase" level="INFO" /> <Logger name="nl.nn.adapterframework.jdbc.migration.LiquibaseXmlChangeLogParser" level="INFO" /> <!-- to avoid stacktraces in DEBUG mode about "Cannot enable ACCESS_EXTERNAL_SCHEMA" --> <Logger name="nl.nn.adapterframework.testtool" level="WARN" /> <Logger name="org.apache" level="INFO" /> <Logger name="org.apache.commons" level="WARN" /> <Logger name="org.apache.cxf" level="WARN" /> <Logger name="org.apache.cxf.interceptor" level="WARN" /> <Logger name="org.apache.http.headers" level="WARN" /> <!-- include a definition, enabling to increase the level in the console --> <Logger name="org.apache.http.wire" level="WARN" /> <!-- include a definition, enabling to increase the level in the console --> <Logger name="org.aspectj.weaver" level="WARN" /> <Logger name="bitronix.tm" level="INFO" /> <Logger name="com.arjuna" level="INFO" /> <Logger name="nl.nn.adapterframework.jta.btm.BtmJtaTransactionManager" level="WARN" /> <Logger name="nl.nn.adapterframework.jta.narayana.NarayanaJtaTransactionManager" level="WARN" /> <Logger name="nl.nn.adapterframework.jta.ThreadConnectableDataSourceTransactionManager" level="INFO" /> <Logger name="org.mongodb" level="INFO" /> <Logger name="org.quartz" level="WARN" /> <Logger name="nl.nn.adapterframework.configuration.digester" level="WARN" /> <Logger name="microsoft.exchange" level="INFO" /> <Logger name="org.springframework.security.web" level="INFO" /> <Logger name="org.springframework.security.ldap" level="WARN" /> <Logger name="liquibase.migrationLog" level="INFO"> <AppenderRef ref="systemout"/> <AppenderRef ref="config"/> </Logger> <Logger name="MSG" additivity="false" level="INFO"> <AppenderRef ref="msg-text"/> <AppenderRef ref="msg-json"/> </Logger> <Logger name="SEC" additivity="false" level="${ctx:security.log.level}"> <AppenderRef ref="security"/> </Logger> <Logger name="HEARTBEAT" additivity="false" level="INFO"> <AppenderRef ref="heartbeat"/> </Logger> <Logger name="CONFIG" additivity="false" level="INFO"> <AppenderRef ref="config"/> </Logger> <Logger name="APPLICATION" additivity="true" level="DEBUG"> <AppenderRef ref="systemout"/> </Logger> <Logger name="nl.nn.testtool" additivity="false" level="INFO"> <AppenderRef ref="ladybug"/> </Logger> <Logger name="nl.nn.ibistesttool" additivity="false" level="INFO"> <AppenderRef ref="ladybug"/> </Logger> <!-- This is an example of a custom logger that prints all log messages of the IbisContext class to sysout --> <!-- Logger name="nl.nn.adapterframework.configuration.IbisContext" level="ERROR" additivity="true"> <AppenderRef ref="stdout"/> </Logger --> <!-- Put some loggers of special interest on DEBUG level --> <!-- Logger name="org.apache.activemq" level="DEBUG" additivity="false"> <AppenderRef ref="stdout"/> </Logger --> <!-- Logger name="org.springframework" level="DEBUG" additivity="false"> <AppenderRef ref="stdout"/> </Logger --> <!-- Logger name="org.springframework.aop" level="DEBUG" additivity="false"> <AppenderRef ref="stdout"/> </Logger --> <!-- Logger name="bitronix.tm" level="DEBUG" additivity="false"> <AppenderRef ref="stdout"/> </Logger --> <!-- Logger name="org.quartz" level="DEBUG" additivity="false"> <AppenderRef ref="stdout"/> </Logger --> <!-- Logger name="org.apache.http" level="DEBUG" additivity="false"> <AppenderRef ref="stdout"/> </Logger --> <!-- Logger name="org.apache.cxf" level="DEBUG" additivity="false"> <AppenderRef ref="stdout"/> </Logger --> <!-- Logger name="nl.nn.testtool.TestTool" level="DEBUG" additivity="false"> <AppenderRef ref="stdout"/> </Logger --> <!-- Logger name="nl.nn.testtool.Report" level="DEBUG" additivity="false"> <AppenderRef ref="stdout"/> </Logger --> <!-- Show Tibet2 metadata query --> <!-- Logger name="nl.nn.ibistesttool.storage.tibet2.Storage" level="DEBUG" additivity="false"> <AppenderRef ref="stdout"/> </Logger --> <Root level="${ctx:log.level}"> <AppenderRef ref="file"/> <AppenderRef ref="XML"/> </Root> </Loggers> </log4j2:Configuration>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy