123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: cclmisc
- (C) Copyright IBM Corp. 2005, 2011
- US Government Users Restricted Rights - Use, duplication or disclosure restricted
- by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
- <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
- <renderer renderedClass="com.cognos.indications.LogIndication" renderingClass="com.cognos.indications.LogIndicationRenderer"/>
- <renderer renderedClass="com.cognos.indications.LogAuditIndication" renderingClass="com.cognos.indications.LogAuditRenderer"/>
- <renderer renderedClass="com.cognos.indications.LogAuditAccessIndication" renderingClass="com.cognos.indications.LogAuditAccessRenderer"/>
- <renderer renderedClass="com.cognos.indications.LogPerfIndication" renderingClass="com.cognos.indications.LogPerfRenderer"/>
- <renderer renderedClass="com.cognos.indications.LogTraceIndication" renderingClass="com.cognos.indications.LogTraceRenderer"/>
- <renderer renderedClass="com.cognos.indications.LogValueTraceIndication" renderingClass="com.cognos.indications.LogValueTraceRenderer"/>
- <!--______________________________________________________________________________________-->
- <!-- -->
- <!-- Developers: Change the appender name below to use your component short name -->
- <!-- -->
- <!--______________________________________________________________________________________-->
- <appender name="ipfLocalFile" class="org.apache.log4j.RollingFileAppender">
- <!--______________________________________________________________________________________-->
- <!-- Developers: Change the log file name (e.g. cogIPF.log) below to use your component short name -->
- <!--______________________________________________________________________________________-->
- <!--______________________________________________________________________________________-->
- <!-- The setting for the File attribute below has been tested with ReportNet while running under Tomcat. -->
- <!-- For other application servers (e.g. WebLogic), because of their COG_ROOT setting, the below -->
- <!-- file attribute may require that an absolute path to the log file be specified. Ensure the log directory is writable. -->
- <!-- For a distributed install on a single machine ensure only one application writes to any given log file -->
- <!--______________________________________________________________________________________-->
- <param name="File" value="../logs/BIBusTKServerMain.log"/>
- <param name="MaxBackupIndex" value="1"/>
- <param name="MaximumFileSize" value="10485760"/>
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%m%n"/>
- </layout>
- </appender>
- <appender name="clientRemote" class="com.cognos.indications.LogLocalUDPAppender">
- <!--______________________________________________________________________________________-->
- <!-- -->
- <!-- Change the Port value below to match the Log Server Port Number in IBM Cognos Configuration -->
- <!-- -->
- <!--______________________________________________________________________________________-->
- <param name="Port" value="9362"/>
- </appender>
- <appender name="clientTCP" class="com.cognos.indications.LogTCPSocketAppender">
- <param name="remoteHost" value="127.0.0.1"/>
- <!--______________________________________________________________________________________-->
- <!-- -->
- <!-- Change the Port value below to match the Log Server Port Number in IBM Cognos Configuration -->
- <!-- -->
- <!--______________________________________________________________________________________-->
- <param name="Port" value="9362"/>
- <param name="LocationInfo" value="false"/>
- <param name="ReconnectionDelay" value="30000"/>
- </appender>
- <appender name="cogclientWithIPFLayout" class="org.apache.log4j.RollingFileAppender">
- <param name="File" value="../logs/crnclientWithIPFLayout.log"/>
- <param name="MaxBackupIndex" value="1"/>
- <param name="MaximumFileSize" value="10485760"/>
- <layout class="com.cognos.indications.LogIPFIndLayout">
- <param name="TraceConversionPattern" value="Logger=%LOG\tTimestamp=%TST\tData=%LDA\n"/>
- <param name="AuditConversionPattern" value="%TST %LOG %OPP %LDA\n"/>
- <param name="AuditAccessConversionPattern" value="%TST %LOG %OPP %OBT %OBP %STA %ERR %LDA\n"/>
- </layout>
- </appender>
- <appender name="cogclientTraceDataOnly" class="org.apache.log4j.RollingFileAppender">
- <param name="File" value="../logs/crnclientWithIPFLayout.log"/>
- <param name="MaxBackupIndex" value="1"/>
- <param name="MaximumFileSize" value="10485760"/>
- <layout class="com.cognos.indications.LogIPFIndLayout">
- <param name="TraceConversionPattern" value="%LDA\n"/>
- </layout>
- </appender>
- <!--______________________________________________________________________________________-->
- <!-- -->
- <!-- For the next three categories, do not change the name attribute. Nor the level values. -->
- <!-- -->
- <!--______________________________________________________________________________________-->
- <category name="Audit" class="com.cognos.indications.LogTypedLogger">
- <level value="warn"/>
- <!--______________________________________________________________________________________-->
- <!-- -->
- <!-- Change the appender refence below to match the Log Server Enable TCP in IBM Cognos Configuration -->
- <!-- If Enable TCP is False, use clientRemote; otherwise use clientTCP -->
- <!--______________________________________________________________________________________-->
- <appender-ref ref="clientRemote"/>
- </category>
- <category name="Trace" class="com.cognos.indications.LogTypedLogger">
- <level value="off"/>
- </category>
- <category name="Perf" class="com.cognos.indications.LogTypedLogger">
- <level value="off"/>
- </category>
- <!--
- The following element controls BIBusTKServer ("BITSrv") logging
- At FATAL logging level, the server records detailed information about any event that will stop the server, such as failure to initialize a required component, depletion of virtual memory, or an fatal exception occurring in a request handler that is not dismissed in that handler. The server also records errors as FATAL if they represent an unexpected exception in a thread in a request handler, even if the server will continue to handle requests on other threads.
- At INFO logging level, the server creates a record
- - when a plugin handler (e.g. Report Server) initializes
- - when it forwards a request to a plugin handler for processing
- - when a plugin handler terminates
- At DEBUG logging level, the server records the following:
- - the real and effective working directories of the server process
- - the command-line options specified when the server was launched
- - the port number of the socket on which the server listens for requests
- - configuration settings that the dispatcher sends to the server
- - an optional session configuration document that may be used to configure Secure Sockets Layer communication
- -->
- <category name="Audit.RTUsage.BITSrv" class="com.cognos.indications.LogTypedLogger">
- <level value="debug"/>
- <!--Turn off the local file logging to reduce content redundancy.-->
- <!--appender-ref ref="ipfLocalFile"/-->
- </category>
- <category name="Trace.RTUsage.BITRec" class="com.cognos.indications.LogTypedLogger">
- <level value="off"/>
- </category>
- <categoryFactory class="com.cognos.indications.LogTypedFactory"/>
- </log4j:configuration>
|