#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 |
|
explicit |
Definition at line 48 of file Logger.cc.
|
virtual |
Definition at line 58 of file Logger.cc.
References m_dispatcher.
|
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(), FakeBeamMonitor::endLuminosityBlock(), and BeamMonitor::endLuminosityBlock().
std::iostream & Logger::log | ( | const std::string & | tag | ) |
Definition at line 150 of file Logger.cc.
References cond::persistency::get_timestamp(), m_log, and makeGlobalPositionRcd_cfg::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 FakeBeamMonitor::FitAndFill(), BeamMonitor::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 FakeBeamMonitor::beginLuminosityBlock(), BeamMonitor::beginLuminosityBlock(), FakeBeamMonitor::endLuminosityBlock(), BeamMonitor::endLuminosityBlock(), FakeBeamMonitor::FitAndFill(), BeamMonitor::FitAndFill(), reportToRecipient(), cond::service::OnlineDBOutputService::writeIOVForNextLumisection(), cond::service::PoolDBOutputService::writeMany(), and cond::service::PoolDBOutputService::writeOneIOV().
EchoedLogStream< edm::LogWarning > Logger::logWarning | ( | ) |
Definition at line 169 of file Logger.cc.
References log(), m_jobName, and m_log.
Referenced by reportToRecipient(), and cond::service::OnlineDBOutputService::writeIOVForNextLumisection().
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__(), FakeBeamMonitor::beginLuminosityBlock(), BeamMonitor::beginLuminosityBlock(), Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
void Logger::subscribeCoralMessages | ( | const std::weak_ptr< MsgDispatcher > & | dispatcher | ) |
Definition at line 64 of file Logger.cc.
References m_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().