CMS MessageLogger Service: Setting a Destination's Threshold

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 string threshold = "INFO" parameter in the PSet configuring detailedInfo.txt tells the destination producing the file critical.txt to ignore all messages with severity below INFO. Since only message issued using LogDebug are below this severity, this means that detailedInfo.txt can react to all non-debug messages but will ignore debug messages.

-- SudhirMalik - 30-Aug-2011

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 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-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback