<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<BODY bgcolor="FFFFFF">
<title>
          CMS MessageLogger: Adjusting Linebreak Policy
</title>

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

<font color=red>
<h1>CMS MessageLogger Service
<br> 
Adjusting Linebreak Policy</h1>
</font>
</center>

By default, output destinations (but not <code>log4cplus</code> or
<code>fwkJobReport</code> destinations) are formatted by injecting line
breaks between items if a line would exceed 80 characters.  This 
formatting can be controlled and/or disabled:

<pre>
process TEST = {

 service = MessageLogger {
    vstring destinations = {   "detailedInfo.txt"
                             , "critical.txt"
                           }
    PSet critical.txt     = { <font color=red>bool noLineBreaks = true</font>   }
    PSet detailedInfo.txt = { <font color=red>int32  lineLength = 132</font>    } 
  }
  untracked PSet maxEvents = {untracked int32 input = 5}
  path p = { myAnalysisModule }
  module myAnalysisModule = ModuleThatIssuesMessages { }
  source = EmptySource { }
}
</pre>

The  <font color=red>bool noLineBreaks = true</font> parameter
in the PSet configuring <font color=red>critical.txt</font> tells the 
destination producing the file critical.txt not to add line breaks 
which would format the message for an 80-column screen.  
Files which will be parsed by automated utilities might be easier to handle
without logger-produced line breaks within a message.
<p>
The  <font color=red>int32  lineLength = 132</font> parameter
in the PSet configuring <font color=red>detailedInfo.txt</font> tells the 
destination producing the file detailedInfo.txt not format the message for a 
132-column window.  


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