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: Requesting the MessageLogger Service
0005 (complete example)
0006 </title>
0007
0008 <center>
0009 <h1> <img src="header-public.gif" align="center"> </h1>
0010
0011 <font color=red>
0012 <h1>Requesting the MessageLogger Service
0013 </h1>
0014 </font>
0015 </center>
0016
0017 <pre>
0018 process TEST = {
0019
0020 <font color=red>service = MessageLogger {</font>
0021 vstring destinations = { "detailedInfo.txt"
0022 , "critical.txt"
0023 , "jobdebug.txt"
0024 , "anotherfile.txt"
0025 , "cout"
0026 , "cerr"
0027 }
0028 vstring categories = { "unimportant"
0029 , "trkwarning"
0030 , "serious_matter"
0031 }
0032 PSet critical.txt = { string threshold = "ERROR"
0033 PSet default = { int32 limit = 10
0034 int32 timespan = 180
0035 }
0036 PSet serious_matter = { int32 limit = 100000 }
0037 }
0038 PSet detailedInfo.txt = { string threshold = "INFO"
0039 PSet default = { int32 limit = 10
0040 int32 timespan = 60
0041 }
0042 PSet WARNING = { int32 limit = 100
0043 int32 timespan = 60
0044 }
0045 PSet ERROR = { int32 limit = 100
0046 int32 timespan = 60
0047 }
0048 PSet trkwarning = { int32 limit = 20
0049 int32 timespan = 1200
0050 }
0051 PSet unimportant = { int32 limit = 5 }
0052 PSet serious_matter = { int32 limit = 1000000 }
0053 }
0054 PSet cerr = { string threshold = "WARNING" }
0055
0056 PSet jobdebug.txt = { PSet default = { int32 limit = 1000000 }
0057 }
0058 PSet anotherfile.txt = { PSet serious_matter = { int32 limit = 1000 }
0059 }
0060 PSet default = { int32 limit = 10
0061 int32 timespan = 60
0062 }
0063 }
0064 untracked PSet maxEvents = {untracked int32 input = 10}
0065 path p = { myAnalysisModule }
0066 module myAnalysisModule = ModuleThatIssuesMessages { }
0067 source = EmptySource { }
0068 }
0069 </pre>
0070
0071 The <font color=red>service = MessageLogger { ... } </font> parameter
0072 tells the framework that you wish to have available the MessageLogger
0073 service. Parameters configuring that service appear between the
0074 braces.
0075 <p>
0076 These configuration directives take effect once the MessageLogger service
0077 has been initialized. All messages issued prior to that point (for example,
0078 any messages issued in the course of reading parameters) will go to cerr.
0079 <p>
0080 Although messages can be issued without having asked for the service,
0081 it is strongly recommended that jobs which may send messages include
0082 this in their .cfg file.
0083
0084 <p><center>
0085 <img src="bar.gif"></center>
0086
0087 <p><center>
0088 <a href="http://www.uscms.org/SoftwareComputing/index.html">
0089 USCMS Software and Computing Home Page </a> -
0090 <a href="MessageLogger.html"> CMS MessageLogger Service Page </a> -
0091 <a href="parameters.html#complete"> Configuration File </a>
0092 </center>
0093
0094 <p>
0095 <hr>
0096 <address><a href="mailto:mf@fnal.gov">Mark Fischler</a></address>
0097
0098 Last modified: Dec 1, 2005
0099
0100 </body>
0101
0102
0103
0104
0105
0106
0107
0108