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: Setting a Destination's Threshold
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 Setting a Destination's Threshold</h1>
0014 </font>
0015 </center>
0016 
0017 
0018 <pre>
0019 process TEST = {
0020 
0021   <font color=red>service = MessageLogger</font> {
0022     vstring destinations = {   "detailedInfo.txt"
0023                              , "critical.txt"
0024                              , "cout"
0025                              , "cerr"
0026                                              }
0027     PSet critical.txt     = { string threshold = "ERROR"   }
0028     PSet detailedInfo.txt = { <font color=red>string threshold = "INFO"</font>    } 
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 <font color=red>string threshold = "INFO"</font> parameter
0040 in the PSet configuring <font color=red>detailedInfo.txt</font> tells the 
0041 destination producing the file critical.txt to ignore all messages
0042 with severity below <font color=red>INFO</font>.  Since only message
0043 issued using <font color=blue>LogDebug</font> are below this severity,
0044 this means that detailedInfo.txt can react to all non-debug messages but
0045 will ignore debug messages.
0046 
0047 <p><center>
0048 <img src="bar.gif"></center>
0049 
0050 <p><center>
0051 <a href="http://www.uscms.org/SoftwareComputing/index.html">
0052 USCMS Software and Computing Home Page </a> - 
0053 <a href="MessageLogger.html"> CMS MessageLogger Service Page </a> -
0054 <a href="parameters.html#example"> Configuration File </a>
0055 </center>
0056 
0057 <p>
0058       <hr>
0059       <address><a href="mailto:mf@fnal.gov">Mark Fischler</a></address>
0060 <!-- hhmts start -->
0061 Last modified: November 29, 2005
0062 <!-- hhmts end -->
0063 </body>