25 #include <boost/log/trivial.hpp>
27 #include "repo_broadcaster.h"
28 #include "repo_listener_abstract.h"
29 #include "../repo_bouncer_global.h"
35 #define repoLog(MSG) repo::lib::RepoLog::getInstance().log(repo::lib::RepoLog::RepoLogLevel::INFO, MSG)
36 #define repoLogDebug(MSG) repo::lib::RepoLog::getInstance().log(repo::lib::RepoLog::RepoLogLevel::DEBUG, MSG)
37 #define repoLogError(MSG) repo::lib::RepoLog::getInstance().log(repo::lib::RepoLog::RepoLogLevel::ERR, MSG)
40 #define repoTrace BOOST_LOG_TRIVIAL(trace)
41 #define repoDebug BOOST_LOG_TRIVIAL(debug)
42 #define repoInfo BOOST_LOG_TRIVIAL(info)
43 #define repoWarning BOOST_LOG_TRIVIAL(warning)
44 #define repoError BOOST_LOG_TRIVIAL(error)
45 #define repoFatal BOOST_LOG_TRIVIAL(fatal)
56 enum class RepoLogLevel { TRACE, DEBUG, INFO, WARNING, ERR, FATAL };
72 const RepoLogLevel &severity,
73 const std::string &msg);
79 void logToFile(
const std::string &filePath);
93 void setLoggingLevel(
const RepoLogLevel &level);
99 void subscribeBroadcaster(RepoBroadcaster *broadcaster);
105 void subscribeListeners(
106 const std::vector<RepoAbstractListener*> &listeners);
Definition: repo_connection_pool_mongo.h:32
RepoLogLevel
Definition: repo_log.h:56
Definition: repo_log.h:49