#include <Logger.h>
Public Member Functions | |
void | end (int retCode) |
std::iostream & | log (const std::string &tag) |
EchoedLogStream< edm::LogDebug_ > | logDebug () |
EchoedLogStream< edm::LogError > | logError () |
Logger ()=delete | |
Logger (const std::string &jobName) | |
EchoedLogStream< edm::LogInfo > | logInfo () |
EchoedLogStream< edm::LogWarning > | logWarning () |
void | save () |
void | saveOnDb () |
void | saveOnFile () |
void | setDbDestination (const std::string &connectionString) |
void | start () |
void | subscribeCoralMessages (const std::weak_ptr< MsgDispatcher > &dispatcher) |
virtual | ~Logger () |
Private Member Functions | |
void | clearBuffer () |
Private Attributes | |
std::string | m_connectionString |
std::weak_ptr< MsgDispatcher > | m_dispatcher |
boost::posix_time::ptime | m_endTime |
std::string | m_jobName |
std::stringstream | m_log |
int | m_retCode |
bool | m_started |
boost::posix_time::ptime | m_startTime |
|
delete |
|
virtual |
|
private |
void Logger::end | ( | int | retCode | ) |
Definition at line 80 of file Logger.cc.
References clearBuffer(), log(), m_endTime, m_retCode, m_started, and save().
Referenced by Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), BeamMonitor::endLuminosityBlock(), and FakeBeamMonitor::endLuminosityBlock().
std::iostream & Logger::log | ( | const std::string & | tag | ) |
Definition at line 150 of file Logger.cc.
References cond::persistency::get_timestamp(), m_log, findQualityFiles::size, and GlobalPosition_Frontier_DevDB_cff::tag.
Referenced by personalPlayback.Playback::do_create_lumi(), personalPlayback.Playback::do_exec(), personalPlayback.FrameworkJob::do_exec(), end(), conddbCopyTest.CopyTest::execute(), logDebug(), logError(), logInfo(), logWarning(), start(), personalPlayback.FrameworkJob::start_run(), and conditionUploadTest.UploadTest::upload().
EchoedLogStream< edm::LogDebug_ > Logger::logDebug | ( | ) |
EchoedLogStream< edm::LogError > Logger::logError | ( | ) |
Definition at line 165 of file Logger.cc.
References log(), m_jobName, and m_log.
Referenced by BeamMonitor::FitAndFill(), FakeBeamMonitor::FitAndFill(), reportToRecipient(), and saveOnDb().
EchoedLogStream< edm::LogInfo > Logger::logInfo | ( | ) |
Definition at line 157 of file Logger.cc.
References log(), m_jobName, and m_log.
Referenced by BeamMonitor::beginLuminosityBlock(), FakeBeamMonitor::beginLuminosityBlock(), BeamMonitor::endLuminosityBlock(), FakeBeamMonitor::endLuminosityBlock(), BeamMonitor::FitAndFill(), FakeBeamMonitor::FitAndFill(), reportToRecipient(), cond::service::OnlineDBOutputService::writeForNextLumisection(), and cond::service::PoolDBOutputService::writeOne().
EchoedLogStream< edm::LogWarning > Logger::logWarning | ( | ) |
Definition at line 169 of file Logger.cc.
References log(), m_jobName, and m_log.
Referenced by reportToRecipient(), cond::service::OnlineDBOutputService::writeForNextLumisection(), and cond::service::PoolDBOutputService::writeOne().
void Logger::save | ( | ) |
Definition at line 143 of file Logger.cc.
References m_connectionString, saveOnDb(), and saveOnFile().
Referenced by end(), and SpecificationBuilder_cfi.Specification::saveAll().
void Logger::saveOnDb | ( | ) |
Definition at line 120 of file Logger.cc.
References cond::auth::COND_WRITER_ROLE, MillePedeFileConverter_cfg::e, cppFunctionSkipper::exception, cond::persistency::O2O_RUN::Table::insert(), logError(), m_connectionString, m_endTime, m_jobName, m_log, m_retCode, m_startTime, saveOnFile(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::persistency::throwException().
Referenced by save().
void Logger::saveOnFile | ( | ) |
Definition at line 110 of file Logger.cc.
References MillePedeFileConverter_cfg::fileName, groupFilesInBlocks::fout, cond::persistency::get_timestamp_for_filename(), m_log, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by save(), and saveOnDb().
void Logger::setDbDestination | ( | const std::string & | connectionString | ) |
Definition at line 66 of file Logger.cc.
References l1RCTOmdsFedVectorProducer_cfi::connectionString, and m_connectionString.
void Logger::start | ( | ) |
Definition at line 69 of file Logger.cc.
References clearBuffer(), log(), m_jobName, m_log, m_started, and m_startTime.
Referenced by progressbar.ProgressBar::__next__(), BeamMonitor::beginLuminosityBlock(), FakeBeamMonitor::beginLuminosityBlock(), Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
void Logger::subscribeCoralMessages | ( | const std::weak_ptr< MsgDispatcher > & | dispatcher | ) |
|
private |
Definition at line 130 of file Logger.h.
Referenced by save(), saveOnDb(), and setDbDestination().
|
private |
Definition at line 136 of file Logger.h.
Referenced by subscribeCoralMessages(), and ~Logger().
|
private |
Definition at line 133 of file Logger.h.
Referenced by end(), and saveOnDb().
|
private |
Definition at line 129 of file Logger.h.
Referenced by logDebug(), logError(), logInfo(), logWarning(), saveOnDb(), and start().
|
private |
Definition at line 135 of file Logger.h.
Referenced by clearBuffer(), log(), logDebug(), logError(), logInfo(), logWarning(), saveOnDb(), saveOnFile(), and start().
|
private |
Definition at line 134 of file Logger.h.
Referenced by end(), and saveOnDb().
|
private |
|
private |
Definition at line 132 of file Logger.h.
Referenced by saveOnDb(), and start().