|
|
|
@ -45,6 +45,7 @@ class Log: public i2p::util::MsgQueue<LogMsg>
@@ -45,6 +45,7 @@ class Log: public i2p::util::MsgQueue<LogMsg>
|
|
|
|
|
std::shared_ptr<std::ostream> GetLogStream () const { return m_LogStream; }; |
|
|
|
|
const std::string& GetTimestamp (); |
|
|
|
|
LogLevel GetLogLevel () { return m_MinLevel; }; |
|
|
|
|
const std::string& GetFullFilePath () const { return m_FullFilePath; }; |
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
|
|
|
|
@ -110,6 +111,11 @@ inline void ReopenLogFile ()
@@ -110,6 +111,11 @@ inline void ReopenLogFile ()
|
|
|
|
|
g_Log->ReopenLogFile (); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
inline bool IsLogToFile () |
|
|
|
|
{ |
|
|
|
|
return g_Log ? !g_Log->GetFullFilePath ().empty () : false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template<typename TValue> |
|
|
|
|
void LogPrint (std::stringstream& s, TValue arg) |
|
|
|
|
{ |
|
|
|
|