ipfBiBUSclientconfig.xml.sample 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: cclmisc
  5. (C) Copyright IBM Corp. 2005, 2011
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted
  7. by GSA ADP Schedule Contract with IBM Corp.
  8. -->
  9. <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
  10. <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
  11. <renderer renderedClass="com.cognos.indications.LogIndication" renderingClass="com.cognos.indications.LogIndicationRenderer"/>
  12. <renderer renderedClass="com.cognos.indications.LogAuditIndication" renderingClass="com.cognos.indications.LogAuditRenderer"/>
  13. <renderer renderedClass="com.cognos.indications.LogAuditAccessIndication" renderingClass="com.cognos.indications.LogAuditAccessRenderer"/>
  14. <renderer renderedClass="com.cognos.indications.LogPerfIndication" renderingClass="com.cognos.indications.LogPerfRenderer"/>
  15. <renderer renderedClass="com.cognos.indications.LogTraceIndication" renderingClass="com.cognos.indications.LogTraceRenderer"/>
  16. <renderer renderedClass="com.cognos.indications.LogValueTraceIndication" renderingClass="com.cognos.indications.LogValueTraceRenderer"/>
  17. <!--______________________________________________________________________________________-->
  18. <!-- -->
  19. <!-- Developers: Change the appender name below to use your component short name -->
  20. <!-- -->
  21. <!--______________________________________________________________________________________-->
  22. <appender name="ipfLocalFile" class="org.apache.log4j.RollingFileAppender">
  23. <!--______________________________________________________________________________________-->
  24. <!-- Developers: Change the log file name (e.g. cogIPF.log) below to use your component short name -->
  25. <!--______________________________________________________________________________________-->
  26. <!--______________________________________________________________________________________-->
  27. <!-- The setting for the File attribute below has been tested with ReportNet while running under Tomcat. -->
  28. <!-- For other application servers (e.g. WebLogic), because of their COG_ROOT setting, the below -->
  29. <!-- file attribute may require that an absolute path to the log file be specified. Ensure the log directory is writable. -->
  30. <!-- For a distributed install on a single machine ensure only one application writes to any given log file -->
  31. <!--______________________________________________________________________________________-->
  32. <param name="File" value="../logs/BIBusTKServerMain.log"/>
  33. <param name="MaxBackupIndex" value="1"/>
  34. <param name="MaximumFileSize" value="10485760"/>
  35. <layout class="org.apache.log4j.PatternLayout">
  36. <param name="ConversionPattern" value="%m%n"/>
  37. </layout>
  38. </appender>
  39. <appender name="clientRemote" class="com.cognos.indications.LogLocalUDPAppender">
  40. <!--______________________________________________________________________________________-->
  41. <!-- -->
  42. <!-- Change the Port value below to match the Log Server Port Number in IBM Cognos Configuration -->
  43. <!-- -->
  44. <!--______________________________________________________________________________________-->
  45. <param name="Port" value="9362"/>
  46. </appender>
  47. <appender name="clientTCP" class="com.cognos.indications.LogTCPSocketAppender">
  48. <param name="remoteHost" value="127.0.0.1"/>
  49. <!--______________________________________________________________________________________-->
  50. <!-- -->
  51. <!-- Change the Port value below to match the Log Server Port Number in IBM Cognos Configuration -->
  52. <!-- -->
  53. <!--______________________________________________________________________________________-->
  54. <param name="Port" value="9362"/>
  55. <param name="LocationInfo" value="false"/>
  56. <param name="ReconnectionDelay" value="30000"/>
  57. </appender>
  58. <appender name="cogclientWithIPFLayout" class="org.apache.log4j.RollingFileAppender">
  59. <param name="File" value="../logs/crnclientWithIPFLayout.log"/>
  60. <param name="MaxBackupIndex" value="1"/>
  61. <param name="MaximumFileSize" value="10485760"/>
  62. <layout class="com.cognos.indications.LogIPFIndLayout">
  63. <param name="TraceConversionPattern" value="Logger=%LOG\tTimestamp=%TST\tData=%LDA\n"/>
  64. <param name="AuditConversionPattern" value="%TST %LOG %OPP %LDA\n"/>
  65. <param name="AuditAccessConversionPattern" value="%TST %LOG %OPP %OBT %OBP %STA %ERR %LDA\n"/>
  66. </layout>
  67. </appender>
  68. <appender name="cogclientTraceDataOnly" class="org.apache.log4j.RollingFileAppender">
  69. <param name="File" value="../logs/crnclientWithIPFLayout.log"/>
  70. <param name="MaxBackupIndex" value="1"/>
  71. <param name="MaximumFileSize" value="10485760"/>
  72. <layout class="com.cognos.indications.LogIPFIndLayout">
  73. <param name="TraceConversionPattern" value="%LDA\n"/>
  74. </layout>
  75. </appender>
  76. <!--______________________________________________________________________________________-->
  77. <!-- -->
  78. <!-- For the next three categories, do not change the name attribute. Nor the level values. -->
  79. <!-- -->
  80. <!--______________________________________________________________________________________-->
  81. <category name="Audit" class="com.cognos.indications.LogTypedLogger">
  82. <level value="warn"/>
  83. <!--______________________________________________________________________________________-->
  84. <!-- -->
  85. <!-- Change the appender refence below to match the Log Server Enable TCP in IBM Cognos Configuration -->
  86. <!-- If Enable TCP is False, use clientRemote; otherwise use clientTCP -->
  87. <!--______________________________________________________________________________________-->
  88. <appender-ref ref="clientRemote"/>
  89. </category>
  90. <category name="Trace" class="com.cognos.indications.LogTypedLogger">
  91. <level value="off"/>
  92. </category>
  93. <category name="Perf" class="com.cognos.indications.LogTypedLogger">
  94. <level value="off"/>
  95. </category>
  96. <!--
  97. The following element controls BIBusTKServer ("BITSrv") logging
  98. 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.
  99. At INFO logging level, the server creates a record
  100. - when a plugin handler (e.g. Report Server) initializes
  101. - when it forwards a request to a plugin handler for processing
  102. - when a plugin handler terminates
  103. At DEBUG logging level, the server records the following:
  104. - the real and effective working directories of the server process
  105. - the command-line options specified when the server was launched
  106. - the port number of the socket on which the server listens for requests
  107. - configuration settings that the dispatcher sends to the server
  108. - an optional session configuration document that may be used to configure Secure Sockets Layer communication
  109. -->
  110. <category name="Audit.RTUsage.BITSrv" class="com.cognos.indications.LogTypedLogger">
  111. <level value="debug"/>
  112. <!--Turn off the local file logging to reduce content redundancy.-->
  113. <!--appender-ref ref="ipfLocalFile"/-->
  114. </category>
  115. <category name="Trace.RTUsage.BITRec" class="com.cognos.indications.LogTypedLogger">
  116. <level value="off"/>
  117. </category>
  118. <categoryFactory class="com.cognos.indications.LogTypedFactory"/>
  119. </log4j:configuration>