Back to home page

Project CMSSW displayed by LXR

 
 

    


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: Default Limits and Timespans
0005 </title>
0006 
0007 <center>
0008 <h1> <img src="header-public.gif" align="center"> </h1>
0009 
0010 <font color=red>
0011 <h1> 
0012 Default Limits and Timespans for a Destination</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     PSet critical.txt = { string threshold = "ERROR"
0032                                <font color=red>PSet default = { int32 limit    = 10
0033                                    int32 timespan = 180
0034                           }</font>
0035                   PSet serious_matter = { int32 limit = 100000 }
0036                         }
0037     PSet detailedInfo.txt = { string threshold = "INFO"
0038                   <font color=red>PSet default        = { int32 limit    =  10
0039                                   int32 timespan =  60
0040                                 }</font>
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                             }
0053     PSet cerr     = { string threshold = "WARNING" }
0054 
0055     PSet jobdebug.txt =     { <font color=red>PSet default        = { int32 limit    = 1000000 }</font>
0056                         }
0057     PSet anotherfile.txt =  { PSet serious_matter = { int32 limit    = 1000 } 
0058                             }
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 <font color=red>PSet default = { ... }</font> parameter, inside the context of a given destination,
0071 specifies that for all types of messages <em>other than those explicitly dealt with by their own 
0072 Pset's in this destination</em>, there should be a given limit on number of times this destination
0073 will report messages of the same ID.
0074 <p>
0075 For example, having been assigned a default limit of 10 occurrences and timespan of 180 seconds, 
0076 critical.txt would report the first 10 occurrences of a edm::LogError("thisID") message, and the first
0077 10 occurrences of a edm::LogError("thatID") message.  After the 10 occurrences, an exponential backoff
0078 kicks in.  After 180 seconds of no messages of that type, the count is reset, so that 10 more occurrences
0079 could appear.
0080 
0081 <p>
0082 The <font color=red>PSet default = { ... }</font> parameter is optional.  If neither a default limit nor
0083 a limit specific to the particular message ID is provided, then that destination will report all messages
0084 of that ID.
0085  
0086 
0087 
0088 <p><center>
0089 <img src="bar.gif"></center>
0090 
0091 <p><center>
0092 <a href="http://www.uscms.org/SoftwareComputing/index.html">
0093 USCMS Software and Computing Home Page </a> - 
0094 <a href="MessageLogger.html"> CMS MessageLogger Service Page </a> -
0095 <a href="parameters.html#complete"> Configuration File </a>
0096 </center>
0097 
0098 <p>
0099       <hr>
0100       <address><a href="mailto:mf@fnal.gov">Mark Fischler</a></address>
0101 <!-- hhmts start -->
0102 Last modified: Dec 1, 2005
0103 <!-- hhmts end -->
0104 </body>
0105 
0106 
0107 
0108 
0109 
0110 
0111 
0112