CMS MessageLogger Service: Specifying Parameters for Individual Destinationss

process TEST = {

  service = MessageLogger {
    untracked vstring destinations = { "detailedInfo.txt"
				     , "critical.txt"
				     , "jobdebug.txt"
				     , "anotherfile.txt"
				     , "cout"
				     , "cerr"
				     }
    untracked vstring categories = { "unimportant"
				   , "trkwarning"
 				   , "serious_matter"
                        	   }
    untracked PSet critical.txt = { untracked string threshold = "ERROR"
                                    untracked PSet default = { untracked int32 limit    = 10
			                                       untracked int32 timespan = 180
					                      }
			            untracked PSet serious_matter = { untracked int32 limit = 100000 }
                                  }
    untracked PSet detailedInfo.txt = { untracked string threshold = "INFO"
			                untracked PSet default        = { untracked int32 limit    =  10
					                                  untracked int32 timespan =  60
					            }
			                untracked PSet WARNING        = { untracked int32 limit    = 100
			                                                  untracked int32 timespan =  60 
					            }
			                untracked PSet ERROR          = { untracked int32 limit    = 100
			                                                  untracked int32 timespan =  60 
					            }
			                untracked PSet trkwarning     = { untracked int32 limit    = 20
			                                                  untracked int32 timespan = 1200
						    }
			                untracked PSet unimportant    = { untracked int32 limit    = 5 }
			                untracked PSet serious_matter = { untracked int32 limit    = 1000000 }
                                      } 
    untracked PSet cerr            = { untracked string threshold = "WARNING" }

    untracked PSet jobdebug.txt =    { untracked PSet default        = { untracked int32 limit    = 1000000 }
                                     }
    untracked PSet anotherfile.txt = { untracked PSet serious_matter = { untracked int32 limit    = 1000 } 
                                     }
    untracked PSet default = { untracked int32 limit    = 10
                               untracked int32 timespan = 60
		             }




    untracked PSet cerr            = { untracked string threshold = "WARNING" }

    untracked PSet jobdebug.txt =    { untracked PSet default        = { untracked int32 limit    = 1000000 }
                                     }
    untracked PSet anotherfile.txt = { untracked PSet serious_matter = { untracked int32 limit    = 1000 } 
                                     }
    untracked PSet default = { untracked int32 limit    = 10
                               untracked int32 timespan = 60
		             }
  }
  path p = { myAnalysisModule }
  module myAnalysisModule = ModuleThatIssuesMessages { }
  source = EmptySource {untracked int32 maxEvents = 10}
}

The configuration file can specify options for a given destination, via a PSet with that destination as its name. These options include setting thresholds for reacting to messages, setting limits of how many times this destination will react to a messages of a given type (either ID or severity).

It is completely optional to have a PSet configuring a given destination. For example, in this file, the cout destination is not further configured. In that case, no filtering will be done for that destination -- all messages will appear.

-- SudhirMalik - 30-Aug-2011

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2011-08-30 - SudhirMalik
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CMSPublic All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback