Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<BODY bgcolor="FFFFFF">
<title>
          CMS MessageLogger:  File Destinations
</title>

<center>
<h1> <img src="header-public.gif" align="center"> </h1>

<font color=red>
<h1>CMS MessageLogger Service
<br> 
File Destinations </h1>
</font>
</center>


<pre>
process TEST = {

  service = MessageLogger {
    vstring destinations = {   <font color=red>"detailedInfo.txt"</font>
                             , <font color=red>"critical.txt"</font>
                             , "cout"
                             , "cerr"
                                             }
    <font color=red>PSet critical.txt     = </font>{ string threshold = "ERROR"   }
    <font color=red>PSet detailedInfo.txt = </font>{ string threshold = "INFO"    } 
    PSet cerr             = { string threshold = "WARNING" }
  }
  untracked PSet maxEvents = {untracked int32 input = 5}
  path p = { myAnalysisModule }
  module myAnalysisModule = ModuleThatIssuesMessages { }
  source = EmptySource { }
}
</pre>


The strings listed in the vstring files list each represent the name of 
a file destination.  Later, optional further configuration can be supplied
for each listed destination.  This further configuration typically establishes
a threshold and/or limits of how often messages are reacted to, and is 
written as a <font color=red>PSet</font> with name matching the file name.

<p>
There need not be a further configuration <font color=red>PSet</font> for every 
listed destination.  (In this example file, there is no further configuration
for the <em>cout</em> destination.)  Absent further configuration, 
the destination will react all messages issued.
<p>
Also, observe that the orders in which file names are listed and PSet's are 
provided are arbitrary and need not match.

<p><center>
<img src="bar.gif"></center>

<p><center>
<a href="http://www.uscms.org/SoftwareComputing/index.html">
USCMS Software and Computing Home Page </a> - 
<a href="MessageLogger.html"> CMS MessageLogger Service Page </a> -
<a href="parameters.html#example"> Configuration File </a>
</center>

<p>
      <hr>
      <address><a href="mailto:mf@fnal.gov">Mark Fischler</a></address>
<!-- hhmts start -->
Last modified: November 29, 2005
<!-- hhmts end -->
</body>