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     = { <font color=red>string threshold = "ERROR"</font>   }
0028     PSet detailedInfo.txt = { 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 <font color=red>string threshold = "ERROR"</font> parameter
0040 in the PSet configuring <font color=red>critical.txt</font> tells the 
0041 destination producing the file critical.txt to ignore all messages
0042 with severity below <font color=red>ERROR</font>.  Thus, messages 
0043 issued using <font color=blue>LogDebug</font>, 
0044 <font color=blue>edm::LogInfo</font>, or 
0045 <font color=blue>edm::LogWarning</font> will have no effect on
0046 the file critical.txt.  
0047 This destination will, however, react to messages issued using 
0048 <font color=blue>edm::LogError</font>. 
0049 
0050 <p><center>
0051 <img src="bar.gif"></center>
0052 
0053 <p><center>
0054 <a href="http://www.uscms.org/SoftwareComputing/index.html">
0055 USCMS Software and Computing Home Page </a> - 
0056 <a href="MessageLogger.html"> CMS MessageLogger Service Page </a> -
0057 <a href="parameters.html#example"> Configuration File </a>
0058 </center>
0059 
0060 <p>
0061       <hr>
0062       <address><a href="mailto:mf@fnal.gov">Mark Fischler</a></address>
0063 <!-- hhmts start -->
0064 Last modified: November 29, 2005
0065 <!-- hhmts end -->
0066 </body>