Wrapper for the Log IceStorm topic with convenience methods for logging.
More...
#include <ArmarXCore/core/logging/LogSender.h>
Wrapper for the Log IceStorm topic with convenience methods for logging.
Definition at line 66 of file LogSender.h.
◆ CoutType
using CoutType = std::basic_ostream<char, std::char_traits<char> > |
◆ manipulator
typedef void(LogSender::* manipulator() |
◆ StandardEndLine
◆ ConsoleColor
Enumerator |
---|
eReset | |
eBlack | |
eRed | |
eGreen | |
eYellow | |
eBlue | |
Definition at line 69 of file LogSender.h.
◆ LogSender() [1/2]
◆ ~LogSender()
◆ LogSender() [2/2]
Constructor taking a LogPrx pointer to the IceStorm topic.
- Parameters
-
componentName | All log messages sent through this instance will show as having originated from this component. |
logProxy | Ice proxy to send messages to. |
Definition at line 114 of file LogSender.cpp.
◆ CreateBackTrace()
std::string CreateBackTrace |
( |
int |
linesToSkip = 1 | ) |
|
|
static |
◆ createLogSender()
◆ CropFunctionName()
std::string CropFunctionName |
( |
const std::string & |
originalFunctionName | ) |
|
|
static |
◆ flush()
Sends the current message to the log and resets the content.
Definition at line 462 of file LogSender.cpp.
◆ GetColorCodeString() [1/2]
◆ GetColorCodeString() [2/2]
std::string GetColorCodeString |
( |
MessageTypeT |
verbosityLevel | ) |
|
|
static |
◆ GetGlobalMinimumLoggingLevel()
◆ getProcessId()
◆ getSeverity()
Retrieves the current message severity.
- Returns
- Current message severity
Definition at line 559 of file LogSender.cpp.
◆ getThreadId()
◆ GetTypeString()
static std::string GetTypeString |
( |
| ) |
|
|
static |
◆ levelToString()
◆ log()
Sends a message to the logging component.
- Parameters
-
severity | eVERBOSE / eINFO / eWARN / eERROR |
message | |
Definition at line 330 of file LogSender.cpp.
◆ operator<<() [1/8]
LogSender & operator<< |
( |
const IceUtil::Time & |
timestamp | ) |
|
operator << overload for IceUtil::Time
- Parameters
-
- Returns
Definition at line 237 of file LogSender.cpp.
◆ operator<<() [2/8]
◆ operator<<() [3/8]
LogSender & operator<< |
( |
const std::chrono::microseconds & |
timestamp | ) |
|
◆ operator<<() [4/8]
LogSender & operator<< |
( |
const std::chrono::milliseconds & |
timestamp | ) |
|
◆ operator<<() [5/8]
LogSender & operator<< |
( |
const std::chrono::minutes & |
timestamp | ) |
|
◆ operator<<() [6/8]
LogSender & operator<< |
( |
const std::chrono::nanoseconds & |
timestamp | ) |
|
◆ operator<<() [7/8]
LogSender & operator<< |
( |
const std::chrono::seconds & |
timestamp | ) |
|
◆ operator<<() [8/8]
Appends a variable to the current message stringstream.
- Parameters
-
- Returns
- This object for further streaming
Definition at line 116 of file LogSender.h.
◆ setBacktrace()
◆ SetColoredConsoleActivated()
void SetColoredConsoleActivated |
( |
bool |
activated = true | ) |
|
|
static |
◆ SetComponentName()
void SetComponentName |
( |
const std::string & |
componentName | ) |
|
|
static |
◆ setFile()
Set the source code filename associated with this message.
- Parameters
-
filename | The file this message was sent from |
- Returns
- a pointer to this object
Definition at line 564 of file LogSender.cpp.
◆ setFunction()
Set the function name associated with this message.
- Parameters
-
line | The function this message was sent from |
- Returns
- a pointer to this object
Definition at line 576 of file LogSender.cpp.
◆ SetGlobalMinimumLoggingLevel()
With setGlobalMinimumLoggingLevel the minimum verbosity-level of log-messages can be set for the whole application.
the flag 'minimumLoggingLevel' overrides this setting.
- Parameters
-
level | The minimum logging level |
Definition at line 677 of file LogSender.cpp.
◆ setLine()
Set the source code line associated with this message.
- Parameters
-
line | The line this message was sent from |
- Returns
- a pointer to this object
Definition at line 570 of file LogSender.cpp.
◆ setLocalMinimumLoggingLevel()
◆ SetLoggingActivated()
void SetLoggingActivated |
( |
bool |
activated = true , |
|
|
bool |
showMessage = true |
|
) |
| |
|
static |
setLoggingActivated() is used to activate or disable the logging facilities in the whole application
- Parameters
-
Definition at line 694 of file LogSender.cpp.
◆ SetLoggingGroup()
void SetLoggingGroup |
( |
const std::string & |
loggingGroup | ) |
|
|
static |
◆ setProxy()
void setProxy |
( |
const std::string & |
componentName, |
|
|
LogPrx |
logProxy |
|
) |
| |
|
static |
◆ SetSendLoggingActivated()
void SetSendLoggingActivated |
( |
bool |
activated = true | ) |
|
|
static |
◆ setTag()
◆ setThreadId()
◆ StringToLevel()
stringToLevel converts a string into a LoggingLevel, if possible.
Case-Insensitive
- Parameters
-
typeStr | string that is to be converted |
- Returns
- The LoggingLevel or Undefined if conversion not possible.
Definition at line 641 of file LogSender.cpp.
The documentation for this class was generated from the following files: