<!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>
