|
|
@ -60,14 +60,13 @@ namespace pEp { |
|
|
|
void log(const std::string& msg); |
|
|
|
void set_enabled(const bool& is_enabled); |
|
|
|
bool get_enabled(); |
|
|
|
} // pEp
|
|
|
|
} // Adapter
|
|
|
|
} // pEpLog
|
|
|
|
} // namespace pEpLog
|
|
|
|
} // namespace Adapter
|
|
|
|
} // namespace pEp
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// pEpLogClass is to be used in a class
|
|
|
|
// pEpLogger can only print the "thread - file::class::function - <message>" format using this macro
|
|
|
|
// WARNING: Some magic is needed
|
|
|
@ -128,6 +127,7 @@ namespace pEp { |
|
|
|
// If never set, the default instancename is a unique number
|
|
|
|
void set_instancename(const std::string& name); |
|
|
|
std::string get_instancename() const; |
|
|
|
|
|
|
|
private: |
|
|
|
static int auto_instance_nr; |
|
|
|
bool is_enabled; |
|
|
|