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: File Destinations
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 File Destinations </h1>
0014 </font>
0015 </center>
0016
0017
0018 <pre>
0019 process TEST = {
0020
0021 service = MessageLogger {
0022 vstring destinations = { <font color=red>"detailedInfo.txt"</font>
0023 , <font color=red>"critical.txt"</font>
0024 , "cout"
0025 , "cerr"
0026 }
0027 <font color=red>PSet critical.txt = </font>{ string threshold = "ERROR" }
0028 <font color=red>PSet detailedInfo.txt = </font>{ string threshold = "INFO" }
0029 PSet cerr = { string threshold = "WARNING" }
0030 }
0031 untracked PSet maxEvents = {untracked int32 input = 5}
0032 path p = { myAnalysisModule }
0033 module myAnalysisModule = ModuleThatIssuesMessages { }
0034 source = EmptySource { }
0035 }
0036 </pre>
0037
0038
0039 The strings listed in the vstring files list each represent the name of
0040 a file destination. Later, optional further configuration can be supplied
0041 for each listed destination. This further configuration typically establishes
0042 a threshold and/or limits of how often messages are reacted to, and is
0043 written as a <font color=red>PSet</font> with name matching the file name.
0044
0045 <p>
0046 There need not be a further configuration <font color=red>PSet</font> for every
0047 listed destination. (In this example file, there is no further configuration
0048 for the <em>cout</em> destination.) Absent further configuration,
0049 the destination will react all messages issued.
0050 <p>
0051 Also, observe that the orders in which file names are listed and PSet's are
0052 provided are arbitrary and need not match.
0053
0054 <p><center>
0055 <img src="bar.gif"></center>
0056
0057 <p><center>
0058 <a href="http://www.uscms.org/SoftwareComputing/index.html">
0059 USCMS Software and Computing Home Page </a> -
0060 <a href="MessageLogger.html"> CMS MessageLogger Service Page </a> -
0061 <a href="parameters.html#example"> Configuration File </a>
0062 </center>
0063
0064 <p>
0065 <hr>
0066 <address><a href="mailto:mf@fnal.gov">Mark Fischler</a></address>
0067 <!-- hhmts start -->
0068 Last modified: November 29, 2005
0069 <!-- hhmts end -->
0070 </body>