mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-15 19:33:07 +01:00
Message Doesn't Support 64-bit Thread IDs #1913
This commit is contained in:
parent
521dbda1e9
commit
dfa32cc158
@ -54,11 +54,11 @@ public:
|
||||
PRIO_DEBUG, /// A debugging message.
|
||||
PRIO_TRACE /// A tracing message. This is the lowest priority.
|
||||
};
|
||||
|
||||
|
||||
Message();
|
||||
/// Creates an empty Message.
|
||||
/// The thread and process ids are set.
|
||||
|
||||
|
||||
Message(const std::string& source, const std::string& text, Priority prio);
|
||||
/// Creates a Message with the given source, text and priority.
|
||||
/// The thread and process ids are set.
|
||||
@ -74,7 +74,7 @@ public:
|
||||
/// __FILE__ macro.
|
||||
///
|
||||
/// The thread and process ids are set.
|
||||
|
||||
|
||||
Message(const Message& msg);
|
||||
/// Creates a Message by copying another one.
|
||||
|
||||
@ -83,10 +83,10 @@ public:
|
||||
|
||||
Message(const Message& msg, const std::string& text);
|
||||
/// Creates a Message by copying all but the text from another message.
|
||||
|
||||
|
||||
~Message();
|
||||
/// Destroys the Message.
|
||||
|
||||
|
||||
Message& operator = (const Message& msg);
|
||||
/// Assignment operator.
|
||||
|
||||
@ -95,34 +95,34 @@ public:
|
||||
|
||||
void swap(Message& msg);
|
||||
/// Swaps the message with another one.
|
||||
|
||||
|
||||
void setSource(const std::string& src);
|
||||
/// Sets the source of the message.
|
||||
|
||||
|
||||
const std::string& getSource() const;
|
||||
/// Returns the source of the message.
|
||||
|
||||
|
||||
void setText(const std::string& text);
|
||||
/// Sets the text of the message.
|
||||
|
||||
|
||||
const std::string& getText() const;
|
||||
/// Returns the text of the message.
|
||||
|
||||
|
||||
void setPriority(Priority prio);
|
||||
/// Sets the priority of the message.
|
||||
|
||||
|
||||
Priority getPriority() const;
|
||||
/// Returns the priority of the message.
|
||||
|
||||
|
||||
void setTime(const Timestamp& time);
|
||||
/// Sets the time of the message.
|
||||
|
||||
|
||||
const Timestamp& getTime() const;
|
||||
/// Returns the time of the message.
|
||||
|
||||
|
||||
void setThread(const std::string& thread);
|
||||
/// Sets the thread identifier for the message.
|
||||
|
||||
|
||||
const std::string& getThread() const;
|
||||
/// Returns the thread identifier for the message.
|
||||
|
||||
@ -131,16 +131,16 @@ public:
|
||||
|
||||
long getTid() const;
|
||||
/// Returns the numeric thread identifier for the message.
|
||||
|
||||
|
||||
IntPtr getOsTid() const;
|
||||
/// Returns the numeric OS thread identifier for the message.
|
||||
|
||||
|
||||
void setPid(long pid);
|
||||
/// Sets the process identifier for the message.
|
||||
|
||||
long getPid() const;
|
||||
/// Returns the process identifier for the message.
|
||||
|
||||
|
||||
void setSourceFile(const char* file);
|
||||
/// Sets the source file path of the statement
|
||||
/// generating the log message.
|
||||
@ -148,18 +148,18 @@ public:
|
||||
/// File must be a static string, such as the value of
|
||||
/// the __FILE__ macro. The string is not copied
|
||||
/// internally for performance reasons.
|
||||
|
||||
|
||||
const char* getSourceFile() const;
|
||||
/// Returns the source file path of the code creating
|
||||
/// the message. May be 0 if not set.
|
||||
|
||||
|
||||
void setSourceLine(int line);
|
||||
/// Sets the source file line of the statement
|
||||
/// generating the log message.
|
||||
///
|
||||
/// This is usually the result of the __LINE__
|
||||
/// macro.
|
||||
|
||||
|
||||
int getSourceLine() const;
|
||||
/// Returns the source file line of the statement
|
||||
/// generating the log message. May be 0
|
||||
@ -186,7 +186,7 @@ public:
|
||||
/// Returns a const reference to the value of the parameter
|
||||
/// with the given name. Throws a NotFoundException if the
|
||||
/// parameter does not exist.
|
||||
|
||||
|
||||
std::string& operator [] (const std::string& param);
|
||||
/// Returns a reference to the value of the parameter with the
|
||||
/// given name. This can be used to set the parameter's value.
|
||||
@ -197,12 +197,12 @@ protected:
|
||||
void init();
|
||||
typedef std::map<std::string, std::string> StringMap;
|
||||
|
||||
private:
|
||||
private:
|
||||
std::string _source;
|
||||
std::string _text;
|
||||
Priority _prio;
|
||||
Timestamp _time;
|
||||
int _tid;
|
||||
long _tid;
|
||||
IntPtr _ostid;
|
||||
std::string _thread;
|
||||
long _pid;
|
||||
|
Loading…
Reference in New Issue
Block a user