mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 10:32:56 +01:00
Logger: added %O to message format to display numeric thread id in logs.
This commit is contained in:
@@ -128,6 +128,9 @@ public:
|
||||
long getTid() const;
|
||||
/// Returns the numeric thread identifier for the message.
|
||||
|
||||
long getOsTid() const;
|
||||
/// Returns the numeric OS thread identifier for the message.
|
||||
|
||||
void setPid(long pid);
|
||||
/// Sets the process identifier for the message.
|
||||
|
||||
@@ -196,6 +199,7 @@ private:
|
||||
Priority _prio;
|
||||
Timestamp _time;
|
||||
int _tid;
|
||||
int _ostid;
|
||||
std::string _thread;
|
||||
long _pid;
|
||||
const char* _file;
|
||||
@@ -243,6 +247,12 @@ inline long Message::getTid() const
|
||||
}
|
||||
|
||||
|
||||
inline long Message::getOsTid() const
|
||||
{
|
||||
return _ostid;
|
||||
}
|
||||
|
||||
|
||||
inline long Message::getPid() const
|
||||
{
|
||||
return _pid;
|
||||
|
||||
Reference in New Issue
Block a user