Browse Source

correct the typo in "m4gic_logger_n4me"

LIB-11
heck 6 months ago
parent
commit
629d17f809
6 changed files with 11 additions and 11 deletions
  1. +1
    -1
      src/grp_query_drv_dummy.hh
  2. +1
    -1
      src/grp_update_drv_dummy.hh
  3. +1
    -1
      src/grp_update_drv_engine.hh
  4. +1
    -1
      src/listmanager_dummy.hh
  5. +6
    -6
      src/pEpLog.hh
  6. +1
    -1
      src/pEpSQLite.hh

+ 1
- 1
src/grp_query_drv_dummy.hh View File

@ -31,7 +31,7 @@ namespace pEp {
private:
ListManagerDummy lmd;
Adapter::pEpLog::pEpLogger &m4gic_logger_n4ame = logger;
Adapter::pEpLog::pEpLogger &m4gic_logger_n4me = logger;
};
} // namespace pEp


+ 1
- 1
src/grp_update_drv_dummy.hh View File

@ -46,7 +46,7 @@ namespace pEp {
private:
ListManagerDummy lmd;
Adapter::pEpLog::pEpLogger &m4gic_logger_n4ame = logger;
Adapter::pEpLog::pEpLogger &m4gic_logger_n4me = logger;
};
} // namespace pEp


+ 1
- 1
src/grp_update_drv_engine.hh View File

@ -42,7 +42,7 @@ namespace pEp {
Adapter::pEpLog::pEpLogger logger{ "GroupUpdateDriverEngine", log_enabled };
private:
Adapter::pEpLog::pEpLogger &m4gic_logger_n4ame = logger;
Adapter::pEpLog::pEpLogger &m4gic_logger_n4me = logger;
};
} // namespace pEp


+ 1
- 1
src/listmanager_dummy.hh View File

@ -39,7 +39,7 @@ namespace pEp {
void ensure_db_initialized();
void db_config();
void create_tables();
Adapter::pEpLog::pEpLogger& m4gic_logger_n4ame = logger;
Adapter::pEpLog::pEpLogger& m4gic_logger_n4me = logger;
};
class DBException : public std::runtime_error {


+ 6
- 6
src/pEpLog.hh View File

@ -149,8 +149,8 @@ namespace pEp {
// Usage:
// create your logger obj in your class as a public member (usually)
// Adapter::pEpLog::pEpLogger logger{"<CLASSNAME>", enabled: true|false};
// then, create an alias for your logger called "m4gic_logger_n4ame" as a private member
// Adapter::pEpLog::pEpLogger& m4gic_logger_n4ame = logger;
// then, create an alias for your logger called "m4gic_logger_n4me" as a private member
// Adapter::pEpLog::pEpLogger& m4gic_logger_n4me = logger;
// Thats all.
// Now in your implementation, to log a message you just write:
// pEpLogClass("my great logging message");
@ -163,11 +163,11 @@ namespace pEp {
do { \
std::stringstream msg_; \
msg_ << std::this_thread::get_id(); \
msg_ << " - " << this->m4gic_logger_n4ame.get_classname(); \
msg_ << "[" << this->m4gic_logger_n4ame.get_instancename() << "]"; \
msg_ << " - " << this->m4gic_logger_n4me.get_classname(); \
msg_ << "[" << this->m4gic_logger_n4me.get_instancename() << "]"; \
msg_ << "::" << __FUNCTION__; \
msg_ << " - " << (msg); \
this->m4gic_logger_n4ame.logRaw(msg_.str()); \
this->m4gic_logger_n4me.logRaw(msg_.str()); \
} while (0)
#endif // NDEBUG
@ -182,7 +182,7 @@ namespace pEp {
#else
#define pEpLogRawClass(msg) \
do { \
this->m4gic_logger_n4ame.logRaw(msg_.str()); \
this->m4gic_logger_n4me.logRaw(msg_.str()); \
} while (0)
#endif // NDEBUG


+ 1
- 1
src/pEpSQLite.hh View File

@ -46,7 +46,7 @@ namespace pEp {
::sqlite3* db = nullptr;
std::string db_path;
ResultSet resultset;
Adapter::pEpLog::pEpLogger& m4gic_logger_n4ame = logger;
Adapter::pEpLog::pEpLogger& m4gic_logger_n4me = logger;
static int callback(void* obj, int argc, char** argv, char** azColName);
};


Loading…
Cancel
Save