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: Establishing File and Stream 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 Establishing File and Stream Destinations</h1>
0014 </font>
0015 </center>
0016 
0017 
0018 <pre>
0019 process TEST = {
0020 
0021   service = MessageLogger {
0022     <font color=red>vstring destinations = </font>{   "detailedInfo.txt"
0023                              , "critical.txt"
0024                              , "cout"
0025                              , "cerr"
0026                                              }
0027     PSet critical.txt     = { string threshold = "ERROR"   }
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>vstring destinations = </font> {"detailedInfo.txt", ... }
0040 parameter establishes one or more file (or ostream) destinations for the 
0041 messages issued.  The destinations can be configured individually to establish
0042 filtering of messages.
0043 
0044 <p>
0045 If messages are issued prior to the initiation of the MessageLogger service,
0046 the configuration of these destinations will not yet have occurred.  Such
0047 messages will be sent to cerr.
0048 
0049 <p><center>
0050 <img src="bar.gif"></center>
0051 
0052 <p><center>
0053 <a href="http://www.uscms.org/SoftwareComputing/index.html">
0054 USCMS Software and Computing Home Page </a> - 
0055 <a href="MessageLogger.html"> CMS MessageLogger Service Page </a> -
0056 <a href="parameters.html#example"> Configuration File </a>
0057 </center>
0058 
0059 <p>
0060       <hr>
0061       <address><a href="mailto:mf@fnal.gov">Mark Fischler</a></address>
0062 <!-- hhmts start -->
0063 Last modified: November 29, 2005
0064 <!-- hhmts end -->
0065 </body>
0066