ipfclientconfig.xml.template 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ccllogging
  5. (C) Copyright IBM Corp. 2005, 2010
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
  9. <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
  10. <renderer renderedClass="com.cognos.indications.LogIndication" renderingClass="com.cognos.indications.LogIndicationRenderer"/>
  11. <renderer renderedClass="com.cognos.indications.LogAuditIndication" renderingClass="com.cognos.indications.LogAuditRenderer"/>
  12. <renderer renderedClass="com.cognos.indications.LogAuditAccessIndication" renderingClass="com.cognos.indications.LogAuditAccessRenderer"/>
  13. <renderer renderedClass="com.cognos.indications.LogPerfIndication" renderingClass="com.cognos.indications.LogPerfRenderer"/>
  14. <renderer renderedClass="com.cognos.indications.LogTraceIndication" renderingClass="com.cognos.indications.LogTraceRenderer"/>
  15. <renderer renderedClass="com.cognos.indications.LogValueTraceIndication" renderingClass="com.cognos.indications.LogValueTraceRenderer"/>
  16. <!-- This appender is used to log output to stdout -->
  17. <!--appender name="clientSTDOUT" class="org.apache.log4j.ConsoleAppender">
  18. <layout class="org.apache.log4j.PatternLayout">
  19. <param name="ConversionPattern" value="%m%n"/>
  20. </layout>
  21. </appender-->
  22. <!-- This file appender contains a filter, i.e. only the WARN level logs can be logged to this appender. -->
  23. <!--appender name="fileWithFilter" class="org.apache.log4j.RollingFileAppender">
  24. <param name="File" value="../logs/cogclientWarn.log"/>
  25. <param name="MaxBackupIndex" value="1"/>
  26. <param name="MaximumFileSize" value="10485760"/>
  27. <layout class="org.apache.log4j.PatternLayout">
  28. <param name="ConversionPattern" value="%m%n"/>
  29. </layout>
  30. <filter class="org.apache.log4j.varia.LevelRangeFilter">
  31. <param name="LevelMin" value="WARN"/>
  32. <param name="LevelMax" value="WARN"/>
  33. </filter>
  34. </appender-->
  35. <!--______________________________________________________________________________________-->
  36. <!-- -->
  37. <!-- Developers: Change the appender name below to use your component short name -->
  38. <!-- -->
  39. <!--______________________________________________________________________________________-->
  40. <appender name="ipfLocalFile" class="org.apache.log4j.RollingFileAppender">
  41. <!--______________________________________________________________________________________-->
  42. <!-- Developers: Change the log file name (e.g. cogIPF.log) below to use your component short name -->
  43. <!--______________________________________________________________________________________-->
  44. <!--______________________________________________________________________________________-->
  45. <!-- The setting for the File attribute below has been tested with ReportNet while running under Tomcat. -->
  46. <!-- For other application servers (e.g. WebLogic), because of their COG_ROOT setting, the below -->
  47. <!-- file attribute may require that an absolute path to the log file be specified. Ensure the log directory is writable. -->
  48. <!-- For a distributed install on a single machine ensure only one application writes to any given log file -->
  49. <!--______________________________________________________________________________________-->
  50. <param name="File" value="../logs/cogIPF.log"/>
  51. <!--______________________________________________________________________________________-->
  52. <!-- The "MaxBackupIndex" is set to 10, which means up to 10 backup log files will be kept, -->
  53. <!-- with logfilename.1, logfilename.2, etc. This will keep more log data but take more disk space. -->
  54. <!-- To save the disk space, please set this value to a smaller number. -->
  55. <!--______________________________________________________________________________________-->
  56. <param name="MaxBackupIndex" value="10"/>
  57. <param name="MaximumFileSize" value="10485760"/>
  58. <layout class="org.apache.log4j.PatternLayout">
  59. <param name="ConversionPattern" value="%m%n"/>
  60. </layout>
  61. </appender>
  62. <appender name="clientRemote" class="com.cognos.indications.LogLocalUDPAppender">
  63. <!--______________________________________________________________________________________-->
  64. <!-- -->
  65. <!-- Change the Port value below to match the Log Server Port Number in Cognos Configuration -->
  66. <!-- -->
  67. <!--______________________________________________________________________________________-->
  68. <param name="Port" value="9362"/>
  69. </appender>
  70. <appender name="clientTCP" class="com.cognos.indications.LogTCPSocketAppender">
  71. <param name="remoteHost" value="127.0.0.1"/>
  72. <!--______________________________________________________________________________________-->
  73. <!-- -->
  74. <!-- Change the Port value below to match the Log Server Port Number in Cognos Configuration -->
  75. <!-- -->
  76. <!--______________________________________________________________________________________-->
  77. <param name="Port" value="9362"/>
  78. <param name="LocationInfo" value="false"/>
  79. <param name="ReconnectionDelay" value="30000"/>
  80. </appender>
  81. <!--______________________________________________________________________________________-->
  82. <!-- -->
  83. <!-- Specify a conversion pattern to define the indication fields to be rendered in the log file -->
  84. <!-- C U R R E N T L Y T H I S I S A J A V A O N L Y F E A T U R E -->
  85. <!-- Specify one conversion pattern for each type of logging indication -->
  86. <!-- Conversion patterns start with the percent sign, followed by three characters -->
  87. <!-- Literals are also supported -->
  88. <!-- Valid conversion specifiers are: -->
  89. <!-- IPA - ip address (header) -->
  90. <!-- PRT - port (header) -->
  91. <!-- PID - process ID (header) -->
  92. <!-- TST - timestamp (header) -->
  93. <!-- TZN - timezone (header) -->
  94. <!-- SID - session ID (header) -->
  95. <!-- RID - request ID (header) -->
  96. <!-- SUD - subrequest ID (header) -->
  97. <!-- STD - step ID (header) -->
  98. <!-- TID - thread ID (header) -->
  99. <!-- CID - component ID (header) -->
  100. <!-- BNM - build number (header) -->
  101. <!-- LVL - logging level (header) -->
  102. <!-- LOG - logger name (header) -->
  103. <!-- OPP - operation (audit indications) -->
  104. <!-- OBT - object type (aidit access and trace indications) -->
  105. <!-- OBP - object path (audit access indications) -->
  106. <!-- STA - status (audit access and performance indications) -->
  107. <!-- ERR - error message (audit access indications) -->
  108. <!-- LDA - logged data (all indication) -->
  109. <!-- RES - resource ID (performance indications) -->
  110. <!-- CPU - CPU counter (performance indications) -->
  111. <!-- MEM - memory counter (performance indications) -->
  112. <!-- DOP - diskops counter (performance indications) -->
  113. <!-- DIO - diskIO counter (performance indications) -->
  114. <!-- COP - commops counter (performance indications) -->
  115. <!-- CIO - commio counter (performance indications) -->
  116. <!-- EPT - elapsed time (performance indications) -->
  117. <!-- CLS - class ID (performance indications) -->
  118. <!-- MID - message ID (performance indications) -->
  119. <!-- SEQ - sequence ID (performance indications) -->
  120. <!-- EID - execution ID (performance indications) -->
  121. <!-- NAM - name (trace indications) -->
  122. <!-- VAL - value (trace indications) -->
  123. <!--______________________________________________________________________________________-->
  124. <appender name="cogclientWithIPFLayout" class="org.apache.log4j.RollingFileAppender">
  125. <param name="File" value="../logs/crnclientWithIPFLayout.log"/>
  126. <param name="MaxBackupIndex" value="1"/>
  127. <param name="MaximumFileSize" value="10485760"/>
  128. <layout class="com.cognos.indications.LogIPFIndLayout">
  129. <param name="TraceConversionPattern" value="Logger=%LOG\tTimestamp=%TST\tData=%LDA\n"/>
  130. <param name="AuditConversionPattern" value="%TST %LOG %OPP %LDA\n"/>
  131. <param name="AuditAccessConversionPattern" value="%TST %LOG %OPP %OBT %OBP %STA %ERR %LDA\n"/>
  132. </layout>
  133. </appender>
  134. <appender name="cogclientTraceDataOnly" class="org.apache.log4j.RollingFileAppender">
  135. <param name="File" value="../logs/crnclientWithIPFLayout.log"/>
  136. <param name="MaxBackupIndex" value="1"/>
  137. <param name="MaximumFileSize" value="10485760"/>
  138. <layout class="com.cognos.indications.LogIPFIndLayout">
  139. <param name="TraceConversionPattern" value="%LDA\n"/>
  140. </layout>
  141. </appender>
  142. <!--______________________________________________________________________________________-->
  143. <!-- -->
  144. <!-- This appender contains a special filter which is used to filter the IPF loggings on certain user, i.e. only the indications -->
  145. <!-- which are logged by a perticular user will be logged to this appender, others will be dropped. -->
  146. <!-- -->
  147. <!-- To use this feature, just add this appender to the categories you are insterested in. -->
  148. <!-- For example, the category "Perf.IPF.Traceme" will only log to dyetrace_output.log file for specified user. -->
  149. <!-- -->
  150. <!--______________________________________________________________________________________-->
  151. <appender name="DyeTraceOutput" class="org.apache.log4j.RollingFileAppender">
  152. <param name="File" value="../logs/dyetrace_output.log"/>
  153. <param name="MaxBackupIndex" value="1"/>
  154. <param name="MaximumFileSize" value="10485760"/>
  155. <layout class="org.apache.log4j.PatternLayout">
  156. <param name="ConversionPattern" value="%m%n"/>
  157. </layout>
  158. <filter class="com.cognos.indications.LogIPFDyeTraceFilter"/>
  159. </appender>
  160. <!--______________________________________________________________________________________-->
  161. <!-- -->
  162. <!-- For the next three categories, do not change the name attribute. Nor the level values. -->
  163. <!-- -->
  164. <!--______________________________________________________________________________________-->
  165. <category name="Audit" class="com.cognos.indications.LogTypedLogger">
  166. <level value="warn"/>
  167. <!--______________________________________________________________________________________-->
  168. <!-- -->
  169. <!-- Change the appender refence below to match the Log Server Enable TCP in Cognos Configuration -->
  170. <!-- If Enable TCP is False, use clientRemote; otherwise use clientTCP -->
  171. <!--______________________________________________________________________________________-->
  172. <appender-ref ref="clientRemote"/>
  173. </category>
  174. <category name="Trace" class="com.cognos.indications.LogTypedLogger">
  175. <level value="off"/>
  176. </category>
  177. <category name="Perf" class="com.cognos.indications.LogTypedLogger">
  178. <level value="off"/>
  179. </category>
  180. <!--______________________________________________________________________________________-->
  181. <!-- -->
  182. <!-- Developers: Add below your application specific categories -->
  183. <!-- To avoid duplicate entries in the local log file, do not reference the same appender from categories -->
  184. <!-- in a parent-child relation; reference the appender only on the parent category (see example below) -->
  185. <!--______________________________________________________________________________________-->
  186. <category name="Trace.IPF" class="com.cognos.indications.LogTypedLogger">
  187. <level value="warn"/>
  188. <appender-ref ref="ipfLocalFile"/>
  189. </category>
  190. <category name="Trace.IPF.ASubComp" class="com.cognos.indications.LogTypedLogger">
  191. <level value="info"/>
  192. </category>
  193. <category name="Perf.IPF" class="com.cognos.indications.LogTypedLogger">
  194. <level value="debug"/>
  195. <appender-ref ref="ipfLocalFile"/>
  196. </category>
  197. <category name="Perf.IPF.Traceme" class="com.cognos.indications.LogTypedLogger">
  198. <level value="debug"/>
  199. <appender-ref ref="DyeTraceOutput"/>
  200. </category>
  201. <categoryFactory class="com.cognos.indications.LogTypedFactory"/>
  202. </log4j:configuration>