1 #ifndef CONDCORE_DBCOMMON_LOGGER_H
2 #define CONDCORE_DBCOMMON_LOGGER_H
30 void connect(
const std::string& logConnectionString,
bool readOnly=
false );
39 const std::string& payloadToken,
40 const std::string& payloadClass,
41 const std::string& iovtag,
42 const std::string& iovtimetype,
43 unsigned int payloadIdx,
44 unsigned long long lastSince
52 const std::string& destDB,
53 const std::string& payloadToken,
54 const std::string& payloadClass,
55 const std::string& iovtag,
56 const std::string& iovtimetype,
57 unsigned int payloadIdx,
58 unsigned long long lastSince,
59 const std::string& exceptionMessage
72 bool filterFailedOp=
true)
const;
83 bool filterFailedOp=
true)
const;
86 const std::string & connectionStr,
88 bool filterFailedOp=
true)
const;
92 const std::string& utctime,
93 const std::string& destDB,
94 const std::string& payloadToken,
95 const std::string& payloadClass,
97 const std::string& iovtag,
98 const std::string& iovtimetype,
99 unsigned int payloadIdx,
100 unsigned long long lastSince,
101 const std::string& exceptionMessage);
SequenceManager * m_sequenceManager
void logFailedOperationNow(const cond::UserLogInfo &userlogInfo, const std::string &destDB, const std::string &payloadToken, const std::string &payloadClass, const std::string &iovtag, const std::string &iovtimetype, unsigned int payloadIdx, unsigned long long lastSince, const std::string &exceptionMessage)
void connect(const std::string &logConnectionString, bool readOnly=false)
DbSession m_sessionHandle
void LookupLastEntryByProvenance(const std::string &provenance, LogDBEntry &logentry, bool filterFailedOp=true) const
void logOperationNow(const cond::UserLogInfo &userlogInfo, const std::string &destDB, const std::string &payloadToken, const std::string &payloadClass, const std::string &iovtag, const std::string &iovtimetype, unsigned int payloadIdx, unsigned long long lastSince)
coral::IQuery * m_statusEditorHandle
void createLogDBIfNonExist()
void LookupLastEntryByTag(const std::string &iovtag, LogDBEntry &logentry, bool filterFailedOp=true) const
Logger(DbSession &sessionHandle)
void insertLogRecord(unsigned long long logId, const std::string &utctime, const std::string &destDB, const std::string &payloadToken, const std::string &payloadClass, const cond::UserLogInfo &userLogInfo, const std::string &iovtag, const std::string &iovtimetype, unsigned int payloadIdx, unsigned long long lastSince, const std::string &exceptionMessage)