- fix logger - use template method finally
This commit is contained in:
@@ -372,9 +372,9 @@ void UserAgent::stop()
|
||||
|
||||
// Dump statistics here
|
||||
ICELogInfo(<< "Remaining "
|
||||
<< Session::InstanceCounter << " session(s), "
|
||||
<< ResipSession::InstanceCounter << " resip DialogSet(s), "
|
||||
<< resip::ClientRegistration::InstanceCounter << " ClientRegistration(s)");
|
||||
<< Session::InstanceCounter.load() << " session(s), "
|
||||
<< ResipSession::InstanceCounter.load() << " resip DialogSet(s), "
|
||||
<< resip::ClientRegistration::InstanceCounter.load() << " ClientRegistration(s)");
|
||||
|
||||
mDum->shutdown(this);
|
||||
onDumCanBeDeleted();
|
||||
|
||||
@@ -445,13 +445,6 @@ Logger::operator<<(const uint64_t data)
|
||||
return *this;
|
||||
}
|
||||
|
||||
Logger&
|
||||
Logger::operator<<(const size_t data)
|
||||
{
|
||||
*mStream << data;
|
||||
return *this;
|
||||
}
|
||||
|
||||
Logger&
|
||||
Logger::operator << (const std::string& data)
|
||||
{
|
||||
|
||||
@@ -129,9 +129,14 @@ public:
|
||||
Logger& operator << (const int64_t data);
|
||||
Logger& operator << (const unsigned int data);
|
||||
Logger& operator << (const uint64_t data);
|
||||
Logger& operator << (const size_t data);
|
||||
Logger& operator << (const std::filesystem::path& p);
|
||||
Logger& operator << (const std::chrono::milliseconds t);
|
||||
template<typename T>
|
||||
Logger& operator << (const T data)
|
||||
{
|
||||
*mStream << data;
|
||||
return *this;
|
||||
}
|
||||
|
||||
protected:
|
||||
LogGuard mGuard;
|
||||
|
||||
Reference in New Issue
Block a user