CMS MessageLogger: Establishing File and Stream Destinations

process TEST = {

  service = MessageLogger {
    untracked vstring destinations = { "detailedInfo.txt"
                                     , "critical.txt"
                                     , "cout"
                                     , "cerr"
                                     }
    untracked PSet critical.txt     = { untracked string threshold = "ERROR"   }
    untracked PSet detailedInfo.txt = { untracked string threshold = "INFO"    } 
    untracked PSet cerr             = { untracked string threshold = "WARNING" }
  }
  path p = { myAnalysisModule }
  module myAnalysisModule = ModuleThatIssuesMessages { }
  source = EmptySource {untracked int32 maxEvents = 5}
}

The vstring destinations = {"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.

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.

-- SudhirMalik - 10-Aug-2010

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2010-08-10 - SudhirMalik
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

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