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: Specifying Parameters for Individual Destinations
0005 </title>
0006
0007 <center>
0008 <h1> <img src="header-public.gif" align="center"> </h1>
0009
0010 <font color=red>
0011 <h1>
0012 Specifying Parameters for Individual Destinations</h1>
0013 </font>
0014 </center>
0015
0016 <pre>
0017 process TEST = {
0018
0019 service = MessageLogger {
0020 vstring destinations = { "detailedInfo.txt"
0021 , "critical.txt"
0022 , "jobdebug.txt"
0023 , "anotherfile.txt"
0024 , "cout"
0025 , "cerr"
0026 }
0027 vstring categories = { "unimportant"
0028 , "trkwarning"
0029 , "serious_matter"
0030 }
0031 <font color=red>PSet critical.txt = {</font> string threshold = "ERROR"
0032 PSet default = { int32 limit = 10
0033 int32 timespan = 180
0034 }
0035 PSet serious_matter = { int32 limit = 100000 }
0036 <font color=red>}</font>
0037 <font color=red>PSet detailedInfo.txt = {</font> string threshold = "INFO"
0038 PSet default = { int32 limit = 10
0039 int32 timespan = 60
0040 }
0041 PSet WARNING = { int32 limit = 100
0042 int32 timespan = 60
0043 }
0044 PSet ERROR = { int32 limit = 100
0045 int32 timespan = 60
0046 }
0047 PSet trkwarning = { int32 limit = 20
0048 int32 timespan = 1200
0049 }
0050 PSet unimportant = { int32 limit = 5 }
0051 PSet serious_matter = { int32 limit = 1000000 }
0052 <font color=red>}</font>
0053 <font color=red>PSet cerr = {</font> string threshold = "WARNING" <font color=red>}</font>
0054
0055 <font color=red>PSet jobdebug.txt = {</font> PSet default = { int32 limit = 1000000 }
0056 <font color=red>}</font>
0057 <font color=red>PSet anotherfile.txt = {</font> PSet serious_matter = { int32 limit = 1000 }
0058 <font color=red>}</font>
0059 PSet default = { int32 limit = 10
0060 int32 timespan = 60
0061 }
0062 }
0063 untracked PSet maxEvents = {untracked int32 input = 10}
0064 path p = { myAnalysisModule }
0065 module myAnalysisModule = ModuleThatIssuesMessages { }
0066 source = EmptySource { }
0067 }
0068 </pre>
0069
0070 The configuration file can specify options for a given destination, via a
0071 PSet with that destination as its name. These options include setting
0072 thresholds for reacting to messages, setting limits of how many times this
0073 destination will react to a messages of a given type (either ID or severity).
0074 <p>
0075 It is completely optional to have a PSet configuring a given destination.
0076 For example, in this file, the cout destination is not further configured.
0077 In that case, no filtering will be done for that destination -- all messages
0078 will appear.
0079
0080 <p><center>
0081 <img src="bar.gif"></center>
0082
0083 <p><center>
0084 <a href="http://www.uscms.org/SoftwareComputing/index.html">
0085 USCMS Software and Computing Home Page </a> -
0086 <a href="MessageLogger.html"> CMS MessageLogger Service Page </a> -
0087 <a href="parameters.html#complete"> Configuration File </a>
0088 </center>
0089
0090 <p>
0091 <hr>
0092 <address><a href="mailto:mf@fnal.gov">Mark Fischler</a></address>
0093
0094 Last modified: Dec 1, 2005
0095
0096 </body>
0097
0098
0099
0100
0101
0102
0103
0104