ipfCSTclientconfig.xml.sample 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: cst
  5. (C) Copyright IBM Corp. 2008, 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. <appender name="AuditAppender" class="org.apache.log4j.RollingFileAppender">
  17. <!-- The setting for the File parameter below has been tested with IBM Cognos 8 while
  18. running under Tomcat.Because of their 'current working directory',
  19. other application servers (e.g. WebLogic), may require that an absolute path
  20. to the log file be specified. Ensure the log directory is writable.
  21. -->
  22. <param name="File" value="../logs/CST_Audit.log"/>
  23. <param name="MaxBackupIndex" value="1"/>
  24. <param name="MaximumFileSize" value="10485760"/>
  25. <layout class="org.apache.log4j.PatternLayout">
  26. <param name="ConversionPattern" value="%m%n"/>
  27. </layout>
  28. </appender>
  29. <appender name="PerfAppender" class="org.apache.log4j.RollingFileAppender">
  30. <!-- The setting for the File parameter below has been tested with IBM Cognos 8 while
  31. running under Tomcat.Because of their 'current working directory',
  32. other application servers (e.g. WebLogic), may require that an absolute path
  33. to the log file be specified. Ensure the log directory is writable.
  34. -->
  35. <param name="File" value="../logs/CST_Perf.log"/>
  36. <param name="MaxBackupIndex" value="1"/>
  37. <param name="MaximumFileSize" value="10485760"/>
  38. <layout class="org.apache.log4j.PatternLayout">
  39. <param name="ConversionPattern" value="%m%n"/>
  40. </layout>
  41. </appender>
  42. <appender name="clientRemote" class="com.cognos.indications.LogLocalUDPAppender">
  43. <!-- Change the Port value below to match the Log Server Port Number in Cognos Configuration -->
  44. <param name="Port" value="9362"/>
  45. </appender>
  46. <appender name="clientTCP" class="com.cognos.indications.LogTCPSocketAppender">
  47. <param name="remoteHost" value="127.0.0.1"/>
  48. <!-- Change the Port value below to match the Log Server Port Number in Cognos Configuration -->
  49. <param name="Port" value="9362"/>
  50. <param name="LocationInfo" value="false"/>
  51. <param name="ReconnectionDelay" value="30000"/>
  52. </appender>
  53. <appender name="ipfLocalFileWithFilter" class="org.apache.log4j.RollingFileAppender">
  54. <!-- The setting for the File parameter below has been tested with IBM Cognos 8 while
  55. running under Tomcat.Because of their 'current working directory',
  56. other application servers (e.g. WebLogic), may require that an absolute path
  57. to the log file be specified. Ensure the log directory is writable.
  58. -->
  59. <param name="File" value="../logs/crnclientWarn.log"/>
  60. <param name="MaxBackupIndex" value="1"/>
  61. <param name="MaximumFileSize" value="10485760"/>
  62. <layout class="org.apache.log4j.PatternLayout">
  63. <param name="ConversionPattern" value="%m%n"/>
  64. </layout>
  65. <filter class="org.apache.log4j.varia.LevelRangeFilter">
  66. <param name="LevelMin" value="WARN"/>
  67. <param name="LevelMax" value="WARN"/>
  68. </filter>
  69. </appender>
  70. <appender name="clientSTDOUT" class="org.apache.log4j.ConsoleAppender">
  71. <layout class="org.apache.log4j.PatternLayout">
  72. <param name="ConversionPattern" value="%m%n"/>
  73. </layout>
  74. </appender>
  75. <!-- ***************THIS SECTION CONTAINS THE Audit APPENDER *********************-->
  76. <category name="Audit" class="com.cognos.indications.LogTypedLogger">
  77. <level value="warn"/>
  78. <!-- Change the appender refence below to match the Log Server Enable TCP in Cognos Configuration
  79. If Enable TCP is False, use clientRemote; otherwise use clientTCP
  80. -->
  81. <!--appender-ref ref="ipfLocalFile"/-->
  82. <appender-ref ref="clientRemote"/>
  83. </category>
  84. <!-- ***************THIS SECTION CONTAINS THE Trace APPENDER *********************-->
  85. <category name="Trace" class="com.cognos.indications.LogTypedLogger">
  86. <level value="off"/>
  87. </category>
  88. <!-- ***************THIS SECTION CONTAINS THE Perf APPENDER *********************-->
  89. <category name="Perf" class="com.cognos.indications.LogTypedLogger">
  90. <level value="off"/>
  91. </category>
  92. <!-- ************THIS SECTION CONTAINS CST SPECIFIC APPENDERS ***************-->
  93. <!--
  94. The following is a list of logging levels from most to least verbose:
  95. {debug, info, error, fatal, off}
  96. 'fatal', 'error' and 'info' levels are for logging failed scenarios
  97. 'fatal' = fatal exception message
  98. 'error' = exception message + SOAP request
  99. 'info' = exception message + SOAP request + SOAP response
  100. 'debug' level is for logging all SOAP requests and responses.
  101. For stability and performance related issues, turn on Perf.CST to "debug" level. This
  102. helps Cognos understand the usage patterns.
  103. For functionality problems, turn Audit.RTUsage.CST "info" or "debug" level.
  104. -->
  105. <category name="Perf.CST" class="com.cognos.indications.LogTypedLogger">
  106. <level value="debug"/>
  107. <appender-ref ref="PerfAppender"/>
  108. </category>
  109. <!-- enable the level you need for debugging -->
  110. <category name="Audit.RTUsage.CST" class="com.cognos.indications.LogTypedLogger">
  111. <level value="info"/>
  112. <appender-ref ref="AuditAppender"/>
  113. </category>
  114. <categoryFactory class="com.cognos.indications.LogTypedFactory"/>
  115. </log4j:configuration>