#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, ConnectionPool &connectionPool) |
void | start () |
virtual | ~Logger () |
Private Member Functions | |
void | clearBuffer () |
Private Attributes | |
std::string | m_connectionString |
boost::posix_time::ptime | m_endTime |
std::string | m_jobName |
std::stringstream | m_log |
int | m_retCode |
ConnectionPool * | m_sharedConnectionPool |
bool | m_started |
boost::posix_time::ptime | m_startTime |
|
delete |
|
private |
void Logger::end | ( | int | retCode | ) |
Definition at line 75 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 146 of file Logger.cc.
References cond::persistency::get_timestamp(), m_log, std::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 161 of file Logger.cc.
References log(), m_jobName, and m_log.
Referenced by BeamMonitor::FitAndFill(), FakeBeamMonitor::FitAndFill(), and saveOnDb().
EchoedLogStream< edm::LogInfo > Logger::logInfo | ( | ) |
Definition at line 153 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(), cond::service::OnlineDBOutputService::writeForNextLumisection(), and cond::service::PoolDBOutputService::writeOne().
EchoedLogStream< edm::LogWarning > Logger::logWarning | ( | ) |
Definition at line 165 of file Logger.cc.
References log(), m_jobName, and m_log.
Referenced by cond::service::OnlineDBOutputService::writeForNextLumisection(), and cond::service::PoolDBOutputService::writeOne().
void Logger::save | ( | ) |
Definition at line 139 of file Logger.cc.
References m_connectionString, saveOnDb(), and saveOnFile().
Referenced by end(), and SpecificationBuilder_cfi.Specification::saveAll().
void Logger::saveOnDb | ( | ) |
Definition at line 115 of file Logger.cc.
References cond::persistency::ConnectionPool::createCoralSession(), MillePedeFileConverter_cfg::e, cppFunctionSkipper::exception, cond::persistency::O2O_RUN::Table::insert(), logError(), m_connectionString, m_endTime, m_jobName, m_log, m_retCode, m_sharedConnectionPool, m_startTime, saveOnFile(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::persistency::throwException().
Referenced by save().
void Logger::saveOnFile | ( | ) |
Definition at line 105 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, |
ConnectionPool & | connectionPool | ||
) |
Definition at line 58 of file Logger.cc.
References l1RCTOmdsFedVectorProducer_cfi::connectionString, m_connectionString, and m_sharedConnectionPool.
void Logger::start | ( | ) |
Definition at line 64 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().
|
private |
Definition at line 126 of file Logger.h.
Referenced by save(), saveOnDb(), and setDbDestination().
|
private |
Definition at line 130 of file Logger.h.
Referenced by end(), and saveOnDb().
|
private |
Definition at line 125 of file Logger.h.
Referenced by logDebug(), logError(), logInfo(), logWarning(), saveOnDb(), and start().
|
private |
Definition at line 132 of file Logger.h.
Referenced by clearBuffer(), log(), logDebug(), logError(), logInfo(), logWarning(), saveOnDb(), saveOnFile(), and start().
|
private |
Definition at line 131 of file Logger.h.
Referenced by end(), and saveOnDb().
|
private |
Definition at line 127 of file Logger.h.
Referenced by saveOnDb(), and setDbDestination().
|
private |
|
private |
Definition at line 129 of file Logger.h.
Referenced by saveOnDb(), and start().