File indexing completed on 2024-04-06 12:12:43
0001 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
0002 <BODY bgcolor="FFFFFF">
0003 <title>
0004 CMS MessageLogger: Framework Job Reports
0005 </title>
0006
0007 <center>
0008 <h1> <img src="header-public.gif" align="center"> </h1>
0009
0010 <font color=red>
0011 <h1>CMS MessageLogger Service
0012 <br>
0013 Framework Job Reports</h1>
0014 </font>
0015 </center>
0016
0017 Ordinary output destinations are formatted for human readability.
0018 CMS has specified an alternative <em>xml</em> format which may
0019 facilitate the creation of automated parsing tools for programmatic
0020 understanding of log files.
0021
0022 <pre>
0023 process TEST = {
0024
0025 service = MessageLogger {
0026 vstring destinations = { "detailedInfo.txt"
0027 , "critical.txt"
0028 }
0029 <font color=red>vstring fwkJobReports = { "long_job_report.xml"
0030 , "terse_job_report.xml"
0031 }</font>
0032
0033 <font color=red>PSet long_job_report.xml = { string threshold = "INFO" }</font>
0034 <font color=red>PSet terse_job_report.xml = { string threshold = "ERROR" }</font>
0035 }
0036 untracked PSet maxEvents = {untracked int32 input = 5}
0037 path p = { myAnalysisModule }
0038 module myAnalysisModule = ModuleThatIssuesMessages { }
0039 source = EmptySource { }
0040 }
0041 </pre>
0042
0043 The <font color=red>vstring fwkJobReports = { ... }</font> parameter
0044 instructs the message logger to form one or more (in this case, two)
0045 <font color=blue>ELfwkJobReport</font> destinations.
0046 Each such destination can be (and in the above example is)
0047 controlled by a PSet, establishing thresholds and limits.
0048 <p>
0049 One set of limits is imposed on the
0050 <font color=blue>ELfwkJobReport</font> destination
0051 by default and need not be mentioned in the .cfg file:
0052 The routine informational messages from the framework reporting
0053 transitions between modules and the start of each new event are
0054 defaulted to a limit of zero (and thus will not appear in the file, unless
0055 the .cfg file explicitly sets a different limit for them).
0056
0057 <p>
0058 The format of the output is illustrated by this example, from
0059 long_job_report.xml:
0060 <font color=blue>
0061 <pre>
0062 <FrameworkJobReport>
0063
0064 <Report>
0065 <Severity> -e </Severity>
0066 <Category> cat_A </Category>
0067 <Message>
0068 <Item> LogError was used to send this message </Item>
0069 </Message>
0070 <Module> UnitTestClient_A:sendSomeMessages </Module>
0071 </Report>
0072
0073 <Report>
0074 <Severity> -e </Severity>
0075 <Category> cat_B </Category>
0076 <Message>
0077 <Item> LogError was used to send this other message </Item>
0078 </Message>
0079 <Module> UnitTestClient_A:sendSomeMessages </Module>
0080 </Report>
0081
0082 <Report>
0083 <Severity> -w </Severity>
0084 <Category> cat_A </Category>
0085 <Message>
0086 <Item> LogWarning was used to send a message with the number </Item>
0087 <Item> 46 </Item>
0088 <Item> and this other string streamed to the logger </Item>
0089 </Message>
0090 <Module> UnitTestClient_A:sendSomeMessages </Module>
0091 </Report>
0092
0093 <Report>
0094 <Severity> -w </Severity>
0095 <Category> cat_B </Category>
0096 <Message>
0097 <Item> LogWarning was used to send this other message </Item>
0098 </Message>
0099 <Module> UnitTestClient_A:sendSomeMessages </Module>
0100 </Report>
0101
0102 <Report>
0103 <Severity> -i </Severity>
0104 <Category> cat_A </Category>
0105 <Message>
0106 <Item> LogInfo was used to send this message </Item>
0107 </Message>
0108 <Module> UnitTestClient_A:sendSomeMessages </Module>
0109 </Report>
0110
0111 <Report>
0112 <Severity> -i </Severity>
0113 <Category> cat_B </Category>
0114 <Message>
0115 <Item> LogInfo was used to send this other message </Item>
0116 </Message>
0117 <Module> UnitTestClient_A:sendSomeMessages </Module>
0118 </Report>
0119
0120 </FrameworkJobReport>
0121 </pre>
0122 </font>
0123 <p><center>
0124 <img src="bar.gif"></center>
0125
0126 <p><center>
0127 <a href="http://www.uscms.org/SoftwareComputing/index.html">
0128 USCMS Software and Computing Home Page </a> -
0129 <a href="MessageLogger.html"> CMS MessageLogger Service Page </a> -
0130 <a href="parameters.html#example"> Configuration File </a>
0131 </center>
0132
0133 <p>
0134 <hr>
0135 <address><a href="mailto:mf@fnal.gov">Mark Fischler</a></address>
0136
0137 Last modified: November 29, 2005
0138
0139 </body>