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 65 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 68 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 105 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 469 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 578 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 334 of file LogSender.cpp.
◆ operator<<() [1/8]
| LogSender & operator<< |
( |
const IceUtil::Time & |
timestamp | ) |
|
operator << overload for IceUtil::Time
- Parameters
-
- Returns
Definition at line 235 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 114 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 584 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 598 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 706 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 591 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 725 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 670 of file LogSender.cpp.
The documentation for this class was generated from the following files: