Files
config-pacs-docker/dcm4chee/default/conf/jboss-log4j.xml
2025-02-26 14:49:25 +07:00

593 lines
24 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<!-- ===================================================================== -->
<!-- -->
<!-- Log4j Configuration -->
<!-- -->
<!-- ===================================================================== -->
<!-- $Id: jboss-log4j.xml 18194 2014-01-09 11:41:19Z javawilli $ -->
<!--
| For more configuration infromation and examples see the Jakarta Log4j
| owebsite: http://jakarta.apache.org/log4j
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
<renderer renderedClass="org.dcm4che.data.Dataset" renderingClass="org.dcm4che.log.DatasetRenderer" />
<!-- ================================= -->
<!-- Preserve messages in a local file -->
<!-- ================================= -->
<!-- A time/date based rolling appender
<appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="File" value="${jboss.server.log.dir}/server.log"/>
<param name="Append" value="false"/>
<param name="DatePattern" value="'.'yyyy-MM-dd"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p %X{calling}->%X{called} (%t) [%c] %m%n"/>
</layout>
</appender>
-->
<!-- A size based file rolling appender -->
<appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="File" value="${jboss.server.log.dir}/server.log"/>
<param name="Append" value="false"/>
<param name="MaxFileSize" value="10000KB"/>
<param name="MaxBackupIndex" value="1"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p %X{calling}->%X{called} (%t) [%c] %m%n"/>
</layout>
</appender>
<!-- A File appender filtered by calling or called AET.
Multiple values for matching calling AET can be specified, separated by ';'.
<appender name="AET_SIEMENS_CT" class="org.jboss.logging.appender.RollingFileAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="File" value="${jboss.server.home.dir}/log/server.log"/>
<param name="Append" value="false"/>
<param name="MaxFileSize" value="1000KB"/>
<param name="MaxBackupIndex" value="10"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p %X{calling}->%X{called} (%t) [%c] %m%n"/>
</layout>
<filter class="org.dcm4che.log.MDCFilter">
<param name="Key" value="calling"/>
<param name="Value" value="SIEMENS_CT"/>
<param name="AcceptOnMatch" value="true"/>
</filter>
<filter class="org.apache.log4j.varia.DenyAllFilter" />
</appender>
-->
<!-- ============================== -->
<!-- Append messages to the console -->
<!-- ============================== -->
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="Target" value="System.out"/>
<param name="Threshold" value="INFO"/>
<layout class="org.apache.log4j.PatternLayout">
<!-- The default pattern: Date Priority [Category] Message\n -->
<param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
</layout>
</appender>
<!-- ====================== -->
<!-- More Appender examples -->
<!-- ====================== -->
<!-- Buffer events and log them asynchronously
<appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<appender-ref ref="FILE"/>
<appender-ref ref="CONSOLE"/>
<appender-ref ref="SMTP"/>
</appender>
-->
<!-- EMail events to an administrator
<appender name="SMTP" class="org.apache.log4j.net.SMTPAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="Threshold" value="ERROR"/>
<param name="To" value="admin@myhost.domain.com"/>
<param name="From" value="nobody@myhost.domain.com"/>
<param name="Subject" value="JBoss Sever Errors"/>
<param name="SMTPHost" value="localhost"/>
<param name="BufferSize" value="10"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}] %m%n"/>
</layout>
</appender>
-->
<!-- Syslog events
<appender name="SYSLOG" class="org.apache.log4j.net.SyslogAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="Facility" value="LOCAL7"/>
<param name="FacilityPrinting" value="true"/>
<param name="SyslogHost" value="localhost"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}] %m%n"/>
</layout>
</appender>
-->
<!-- Log events to JMS (requires a topic to be created)
<appender name="JMS" class="org.apache.log4j.net.JMSAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="Threshold" value="ERROR"/>
<param name="TopicConnectionFactoryBindingName" value="java:/ConnectionFactory"/>
<param name="TopicBindingName" value="topic/MyErrorsTopic"/>
</appender>
-->
<!-- Log events through SNMP
<appender name="TRAP_LOG" class="org.apache.log4j.ext.SNMPTrapAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="ImplementationClassName" value="org.apache.log4j.ext.JoeSNMPTrapSender"/>
<param name="ManagementHost" value="127.0.0.1"/>
<param name="ManagementHostTrapListenPort" value="162"/>
<param name="EnterpriseOID" value="1.3.6.1.4.1.24.0"/>
<param name="LocalIPAddress" value="127.0.0.1"/>
<param name="LocalTrapSendPort" value="161"/>
<param name="GenericTrapType" value="6"/>
<param name="SpecificTrapType" value="12345678"/>
<param name="CommunityString" value="public"/>
<param name="ForwardStackTraceWithTrap" value="true"/>
<param name="Threshold" value="DEBUG"/>
<param name="ApplicationTrapOID" value="1.3.6.1.4.1.24.12.10.22.64"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d,%p,[%t],[%c],%m%n"/>
</layout>
</appender>
-->
<!-- Emit events as JMX notifications -->
<appender name="JMX" class="org.jboss.monitor.services.JMXNotificationAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="Threshold" value="ERROR"/>
<param name="ObjectName" value="jboss.system:service=Logging,type=JMXNotificationAppender"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p [%c] %m"/>
</layout>
</appender>
<!-- ==================== -->
<!-- Audit Trail Messages -->
<!-- ==================== -->
<!-- RFC-5424/5425/5426 compliant Syslog Appender for emitting RFC-3881 compliant Audit messages -->
<appender name="AUDITLOG" class="org.dcm4che2.audit.log4j.net.SyslogAppender2">
<!-- Protocol (UCP or TCP) to use to emit messages to syslog server. -->
<param name="Protocol" value="UDP" />
<!-- Address or host name of syslog server -->
<param name="Host" value="localhost" />
<!-- UDP or TCP port number of syslog server. -->
<param name="Port" value="4000" />
<!-- Bind socket to the specified local IP address.
Default: 0.0.0.0 = system will pick up a valid local address -->
<param name="BindAddress" value="0.0.0.0" />
<!-- Bind socket to the specified local port.
Default: 0 = system will pick up an ephemeral port -->
<param name="LocalPort" value="0" />
<!-- Sets the SO_SNDBUF option to the specified value. -->
<param name="SendBuffer" value="65507" />
<!-- Timeout in ms of TCP connect. Default: 0 = no timeout
Only effective if protocol="TCP". -->
<param name="TcpConnectTimeout" value="0" />
<!-- Retry interval in ms of TCP connect. Default: 60000
Only effective if protocol="TCP". -->
<param name="TcpRetryInterval" value="60000" />
<!-- Specifies if TLS handshake/encryption is enabled. Default: false.
Only effective if protocol="TCP". -->
<param name="TlsEnabled" value="false" />
<!-- TLS protocol. Default: TLSv1.
Only effective if protocol="TCP" and tlsEnabled="true".
Supported protocols: SSLv2Hello, SSLv3, TLSv1. -->
<param name="TlsProtocol" value="TLSv1" />
<!-- Comma separated list of enabled/offered TLS Cipher Suites.
Default: TLS_RSA_WITH_AES_128_CBC_SHA.
Only effective if protocol="TCP" and tlsEnabled="true".
Supported Cipher Suites:
SSL_RSA_WITH_RC4_128_MD5,
SSL_RSA_WITH_RC4_128_SHA,
TLS_RSA_WITH_AES_128_CBC_SHA,
TLS_DHE_RSA_WITH_AES_128_CBC_SHA,
TLS_DHE_DSS_WITH_AES_128_CBC_SHA,
SSL_RSA_WITH_3DES_EDE_CBC_SHA,
SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,
SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA,
SSL_RSA_WITH_DES_CBC_SHA,
SSL_DHE_RSA_WITH_DES_CBC_SHA,
SSL_DHE_DSS_WITH_DES_CBC_SHA,
SSL_RSA_EXPORT_WITH_RC4_40_MD5,
SSL_RSA_EXPORT_WITH_DES40_CBC_SHA,
SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA,
SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA,
SSL_RSA_WITH_NULL_MD5,
SSL_RSA_WITH_NULL_SHA,
SSL_DH_anon_WITH_RC4_128_MD5,
TLS_DH_anon_WITH_AES_128_CBC_SHA,
SSL_DH_anon_WITH_3DES_EDE_CBC_SHA,
SSL_DH_anon_WITH_DES_CBC_SHA,
SSL_DH_anon_EXPORT_WITH_RC4_40_MD5,
SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA,
TLS_KRB5_WITH_RC4_128_SHA,
TLS_KRB5_WITH_RC4_128_MD5,
TLS_KRB5_WITH_3DES_EDE_CBC_SHA,
TLS_KRB5_WITH_3DES_EDE_CBC_MD5,
TLS_KRB5_WITH_DES_CBC_SHA,
TLS_KRB5_WITH_DES_CBC_MD5,
TLS_KRB5_EXPORT_WITH_RC4_40_SHA,
TLS_KRB5_EXPORT_WITH_RC4_40_MD5,
TLS_KRB5_EXPORT_WITH_DES_CBC_40_SHA,
TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5. -->
<param name="TlsCiphers" value="TLS_RSA_WITH_AES_128_CBC_SHA" />
<!-- Keystore file with private key and certificate to use to authenticate
this client in the TLS handshake.
Required if protocol="TCP" and tlsEnabled="true". -->
<param name="KeyStoreFile" value="${jboss.server.home.dir}/conf/certificates/test_sys_1.p12" />
<!-- The password to access the keystore.
Required if protocol="TCP" and tlsEnabled="true". -->
<param name="KeyStorePass" value="secret" />
<!-- The password to access the private key in the keystore.
Required if protocol="TCP" and tlsEnabled="true". -->
<param name="KeyPass" value="secret" />
<!-- Type (JKS or PKCS12) of keystore. Default: JKS.
Only effective if protocol="TCP" and tlsEnabled="true". -->
<param name="KeyStoreType" value="PKCS12" />
<!-- Truststore file to use to validate server certificates.
Required if protocol="TCP" and tlsEnabled="true". -->
<param name="TrustStoreFile" value="${jboss.server.home.dir}/conf/certificates/mesa_certs.jks" />
<!-- The password to access the truststore.
Required if protocol="TCP" and tlsEnabled="true". -->
<param name="TrustStorePass" value="secret" />
<!-- Type (JKS or PKCS12) of keystore. Default: JKS.
Only effective if protocol="TCP" and tlsEnabled="true". -->
<param name="TrustStoreType" value="JKS" />
<!-- Facility in syslog header of emitted messages. Default: AUTHPRIV.
Enumerated values: KERN, USER, MAIL, DAEMON, AUTH, SYSLOG, LPR, NEWS,
UUCP, CRON, AUTHPRIV, FTP, NTP, AUDIT, ALERT, CRON2, LOCAL0, LOCAL1,
LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. -->
<param name="SyslogFacility" value="AUTHPRIV" />
<!-- Severity in syslog header of emitted messages of level FATAL.
Default: EMERGENCY. Enumerated values: EMERGENCY, ALERT, CRITICAL,
ERROR, WARNING, NOTICE, INFORMATIONAL, DEBUG. -->
<param name="FatalSeverity" value="EMERGENCY" />
<!-- Severity in syslog header of emitted messages of level ERROR.
Default: ERROR. Enumerated values: EMERGENCY, ALERT, CRITICAL,
ERROR, WARNING, NOTICE, INFORMATIONAL, DEBUG. -->
<param name="ErrorSeverity" value="ERROR" />
<!-- Severity in syslog header of emitted messages of level WARN.
Default: WARNING. Enumerated values: EMERGENCY, ALERT, CRITICAL,
ERROR, WARNING, NOTICE, INFORMATIONAL, DEBUG. -->
<param name="WarnSeverity" value="WARNING" />
<!-- Severity in syslog header of emitted messages of level INFO.
Default: NOTICE. Enumerated values: EMERGENCY, ALERT, CRITICAL,
ERROR, WARNING, NOTICE, INFORMATIONAL, DEBUG. -->
<param name="infoSeverity" value="NOTICE" />
<!-- Severity in syslog header of emitted messages of level DEBUG.
Default: DEBUG. Enumerated values: EMERGENCY, ALERT, CRITICAL,
ERROR, WARNING, NOTICE, INFORMATIONAL, DEBUG. -->
<param name="DebugSeverity" value="DEBUG" />
<!-- Defines if the TIMESTAMP field in syslog header of emitted messages
shall be specified in Coordinated Universal Time (UTC) instead in
local time with offset between local time and UTC.
Default: false -->
<param name="TimestampInUTC" value="false" />
<!-- HOSTNAME field in syslog header of emitted messages.
Default: local host name.
<param name="HostName" value="host.with.domain" />
-->
<!-- APP-NAME field in syslog header of emitted messages. Default: -. -->
<param name="ApplicationName" value="${app.name}" />
<!-- MSGID field in syslog header of emitted messages. Default: -. -->
<param name="MessageID" value="-" />
<!-- Defines if the message shall be prefixed with the Unicode byte order
mask (BOM) for UTF-8 (%xEF.BB.BF.). Default: true. -->
<param name="PrefixMessageWithBOM" value="true" />
<!-- Sample Audit Message Filter to suppress emission of Audit Messages
triggered by Queries (Event ID = (110112,DCM,"Query")) invoked by
DICOM AE "DCMQR".
<filter class="org.dcm4che2.audit.log4j.AuditMessageFilter">
<param name="AcceptOnMatch" value="false" />
<param name="EventIDToMatch" value="110112^DCM" />
<param name="AETitlesToMatch" value="DCMQR" />
<param name="UserIsRequestorToMatch" value="true" />
</filter>
-->
<!-- Parameters supported by org.dcm4che2.audit.log4j.AuditMessageFilter:
AcceptOnMatch - defines if matching messages are included (=true) or
excluded (=false). Be aware on the filter order if mixing include and
exclude filters!
Event parameters:
EventIDToMatch - Event ID code to match. Format: code^codeSystemName.
EventActionCodesToMatch - Comma separated list of Event Action Codes
{'C','R','U','D','E'} to match.
EventOutcomeIndicatorsToMatch - Comma separated list of Event Outcome
Indicators {'SUCCESS','WARN','ERROR'.'FATAL'} to match.
EventTypeCodeToMatch - Event Type code to match.
Format: code^codeSystemName.
Active Participant parameters (at least one of the Active Participants
of the message must match with ALL specified parameters):
UserIDToMatch - User ID of Active Participant to match.
RoleIDCodeToMatch - Role ID code of Active Participant to match.
AETitlesToMatch - AE Title of Active Participant to match.
UserIsRequestorToMatch - defines if the requesting (=true) or the
not requesting (=false) Active Participants matches.
MachineNameToMatch - Host name of Active Participant to match.
IPAddressToMatch - IP address of Active Participant to match.
-->
</appender>
<!-- set additivity="true" to log emitted Audit Messages in CONSOLE
and FILE appender -->
<category name="auditlog" additivity="false">
<priority value="INFO" />
<appender-ref ref="AUDITLOG"/>
</category>
<!-- ================ -->
<!-- Limit categories -->
<!-- ================ -->
<!-- Limit the org.dcm4chex.arr to INFO -->
<category name="org.dcm4chex.arr">
<priority value="INFO"/>
</category>
<!-- Limit the org.infohazard category to INFO -->
<category name="org.infohazard">
<priority value="INFO"/>
</category>
<!-- Limit the org.dcm4chex.archive category to INFO -->
<category name="org.dcm4chex.archive">
<priority value="INFO"/>
</category>
<!-- Limit the org.dcm4chex.archive category to INFO -->
<category name="org.dcm4chex.cdw">
<priority value="INFO"/>
</category>
<!-- Limit the org.dcm4chex.wado to INFO -->
<category name="org.dcm4chex.wado">
<priority value="INFO"/>
</category>
<!-- Limit the org.dcm4chex.rid to INFO -->
<category name="org.dcm4chex.rid">
<priority value="INFO"/>
</category>
<!-- Limit the org.dcm4chex.xds to INFO -->
<category name="org.dcm4chex.xds">
<priority value="INFO"/>
</category>
<!-- Limit the org.dcm4cheri category to INFO -->
<category name="org.dcm4cheri">
<priority value="INFO"/>
</category>
<!-- Limit the org.dcm4che2 category to INFO -->
<category name="org.dcm4che2">
<priority value="INFO"/>
</category>
<!-- Limit the org.dcm4che.util category to INFO -->
<category name="org.dcm4che.util">
<priority value="INFO"/>
</category>
<!-- Limit the org.dcm4chee category to INFO -->
<category name="org.dcm4chee">
<priority value="INFO"/>
</category>
<!-- Limit the org.apache.wicket.Component category to avoid 'Markup id set on a component that is usually not rendered into markup.' messages from wicket -->
<category name="org.apache.wicket.Component">
<priority value="ERROR"/>
</category>
<!-- To see ignored unhandled exceptions from listener in handleNotification -->
<category name="org.jboss.mx.util.JBossNotificationBroadcasterSupport">
<priority value="DEBUG"/>
</category>
<!-- Limit the org.apache category to INFO as its DEBUG is verbose -->
<category name="org.apache">
<priority value="INFO"/>
</category>
<!-- Limit the org.jboss.serial (jboss-serialization) to INFO as its DEBUG is verbose -->
<category name="org.jboss.serial">
<priority value="INFO"/>
</category>
<!-- Limit the org.jgroups category to WARN as its INFO is verbose -->
<category name="org.jgroups">
<priority value="WARN"/>
</category>
<!-- Limit the jacorb category to WARN as its INFO is verbose -->
<category name="jacorb">
<priority value="WARN"/>
</category>
<!-- Limit JBoss categories -->
<category name="org.jboss">
<priority value="INFO"/>
</category>
<!-- Limit the JSR77 categories -->
<category name="org.jboss.management">
<priority value="INFO"/>
</category>
<!-- Limit the JBossTS categories -->
<category name="com.arjuna">
<priority value="INFO"/>
</category>
<!-- Limit the Hibernate categories -->
<category name="org.hibernate">
<priority value="INFO"/>
</category>
<!-- Limit the JSF categories -->
<category name="javax.enterprise.resource.webcontainer.jsf">
<priority value="INFO"/>
</category>
<!-- Enable JBossWS message tracing
<category name="jbossws.SOAPMessage">
<priority value="TRACE"/>
</category>
-->
<!-- Decrease the priority threshold for the org.jboss.varia category
<category name="org.jboss.varia">
<priority value="DEBUG"/>
</category>
-->
<!-- Show the evolution of the DataSource pool in the logs [inUse/Available/Max]
<category name="org.jboss.resource.connectionmanager.JBossManagedConnectionPool">
<priority value="TRACE"/>
</category>
-->
<!--
| An example of enabling the custom TRACE level priority that is used
| by the JBoss internals to diagnose low level details. This example
| turns on TRACE level msgs for the org.jboss.ejb.plugins package and its
| subpackages. This will produce A LOT of logging output.
|
| Note: since jboss AS 4.2.x, the trace level is supported natively by
| log4j, so although the custom org.jboss.logging.XLevel priority will
| still work, there is no need to use it. The two examples that follow
| will both enable trace logging.
<category name="org.jboss.system">
<priority value="TRACE" class="org.jboss.logging.XLevel"/>
</category>
<category name="org.jboss.ejb.plugins">
<priority value="TRACE"/>
</category>
-->
<!--
| Logs these events to SNMP:
- server starts/stops
- cluster evolution (node death/startup)
- When an EJB archive is deployed (and associated verified messages)
- When an EAR archive is deployed
<category name="org.jboss.system.server.Server">
<priority value="INFO" />
<appender-ref ref="TRAP_LOG"/>
</category>
<category name="org.jboss.ha.framework.interfaces.HAPartition.lifecycle">
<priority value="INFO" />
<appender-ref ref="TRAP_LOG"/>
</category>
<category name="org.jboss.deployment.MainDeployer">
<priority value="ERROR" />
<appender-ref ref="TRAP_LOG"/>
</category>
<category name="org.jboss.ejb.EJBDeployer">
<priority value="INFO" />
<appender-ref ref="TRAP_LOG"/>
</category>
<category name="org.jboss.deployment.EARDeployer">
<priority value="INFO" />
<appender-ref ref="TRAP_LOG"/>
</category>
-->
<!-- ======================= -->
<!-- Setup the Root category -->
<!-- ======================= -->
<root>
<appender-ref ref="CONSOLE"/>
<appender-ref ref="FILE"/>
<appender-ref ref="JMX"/>
</root>
<!-- Clustering logging -->
<!-- Uncomment the following to redirect the org.jgroups and
org.jboss.ha categories to a cluster.log file.
<appender name="CLUSTER" class="org.jboss.logging.appender.RollingFileAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="File" value="${jboss.server.log.dir}/cluster.log"/>
<param name="Append" value="false"/>
<param name="MaxFileSize" value="500KB"/>
<param name="MaxBackupIndex" value="1"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
</layout>
</appender>
<category name="org.jgroups">
<priority value="DEBUG" />
<appender-ref ref="CLUSTER"/>
</category>
<category name="org.jboss.ha">
<priority value="DEBUG" />
<appender-ref ref="CLUSTER"/>
</category>
-->
</log4j:configuration>