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: Adjusting Linebreak Policy
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 Adjusting Linebreak Policy</h1>
0014 </font>
0015 </center>
0016
0017 By default, output destinations (but not <code>log4cplus</code> or
0018 <code>fwkJobReport</code> destinations) are formatted by injecting line
0019 breaks between items if a line would exceed 80 characters. This
0020 formatting can be controlled and/or disabled:
0021
0022 <pre>
0023 process TEST = {
0024
0025 service = MessageLogger {
0026 vstring destinations = { "detailedInfo.txt"
0027 , "critical.txt"
0028 }
0029 PSet critical.txt = { <font color=red>bool noLineBreaks = true</font> }
0030 PSet detailedInfo.txt = { <font color=red>int32 lineLength = 132</font> }
0031 }
0032 untracked PSet maxEvents = {untracked int32 input = 5}
0033 path p = { myAnalysisModule }
0034 module myAnalysisModule = ModuleThatIssuesMessages { }
0035 source = EmptySource { }
0036 }
0037 </pre>
0038
0039 The <font color=red>bool noLineBreaks = true</font> parameter
0040 in the PSet configuring <font color=red>critical.txt</font> tells the
0041 destination producing the file critical.txt not to add line breaks
0042 which would format the message for an 80-column screen.
0043 Files which will be parsed by automated utilities might be easier to handle
0044 without logger-produced line breaks within a message.
0045 <p>
0046 The <font color=red>int32 lineLength = 132</font> parameter
0047 in the PSet configuring <font color=red>detailedInfo.txt</font> tells the
0048 destination producing the file detailedInfo.txt not format the message for a
0049 132-column window.
0050
0051
0052 <p><center>
0053 <img src="bar.gif"></center>
0054
0055 <p><center>
0056 <a href="http://www.uscms.org/SoftwareComputing/index.html">
0057 USCMS Software and Computing Home Page </a> -
0058 <a href="MessageLogger.html"> CMS MessageLogger Service Page </a> -
0059 <a href="parameters.html#example"> Configuration File </a>
0060 </center>
0061
0062 <p>
0063 <hr>
0064 <address><a href="mailto:mf@fnal.gov">Mark Fischler</a></address>
0065
0066 Last modified: November 29, 2005
0067
0068 </body>