/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/MessageLogger/doc/html/errorthreshold.html
66 строк
2 KB
Giulio Eulisse
Snapshot of CMSSW_6_2_0_pre8.
26 июн 2013, 18:12
26 июн 2013, 18:12
214ab73
Код
Авторство
О чём код?
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <BODY bgcolor="FFFFFF"> <title> CMS MessageLogger: Setting a Destination's Threshold </title> <center> <h1> <img src="header-public.gif" align="center"> </h1> <font color=red> <h1>CMS MessageLogger Service <br> Setting a Destination's Threshold</h1> </font> </center> <pre> process TEST = { <font color=red>service = MessageLogger</font> { vstring destinations = { "detailedInfo.txt" , "critical.txt" , "cout" , "cerr" } PSet critical.txt = { <font color=red>string threshold = "ERROR"</font> } PSet detailedInfo.txt = { string threshold = "INFO" } PSet cerr = { string threshold = "WARNING" } } untracked PSet maxEvents = {untracked int32 input = 5} path p = { myAnalysisModule } module myAnalysisModule = ModuleThatIssuesMessages { } source = EmptySource { } } </pre> The <font color=red>string threshold = "ERROR"</font> parameter in the PSet configuring <font color=red>critical.txt</font> tells the destination producing the file critical.txt to ignore all messages with severity below <font color=red>ERROR</font>. Thus, messages issued using <font color=blue>LogDebug</font>, <font color=blue>edm::LogInfo</font>, or <font color=blue>edm::LogWarning</font> will have no effect on the file critical.txt. This destination will, however, react to messages issued using <font color=blue>edm::LogError</font>. <p><center> <img src="bar.gif"></center> <p><center> <a href="http://www.uscms.org/SoftwareComputing/index.html"> USCMS Software and Computing Home Page </a> - <a href="MessageLogger.html"> CMS MessageLogger Service Page </a> - <a href="parameters.html#example"> Configuration File </a> </center> <p> <hr> <address><a href="mailto:mf@fnal.gov">Mark Fischler</a></address> <!-- hhmts start --> Last modified: November 29, 2005 <!-- hhmts end --> </body>