<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<BODY bgcolor="FFFFFF">
<title>
          CMS MessageLogger: Establishing File and Stream Destinations
</title>

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

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


<pre>
process TEST = {

  service = MessageLogger {
    <font color=red>vstring destinations = </font>{   "detailedInfo.txt"
                             , "critical.txt"
                             , "cout"
                             , "cerr"
                                             }
    PSet critical.txt     = { string threshold = "ERROR"   }
    PSet detailedInfo.txt = { 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 <font color=red>vstring destinations = </font> {"detailedInfo.txt", ... }
parameter establishes one or more file (or ostream) destinations for the 
messages issued.  The destinations can be configured individually to establish
filtering of messages.

<p>
If messages are issued prior to the initiation of the MessageLogger service,
the configuration of these destinations will not yet have occurred.  Such
messages will be sent to cerr.

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

