31#include <Ice/ProxyHandle.h>
32#include <IceUtil/Time.h>
58 typedef ::IceInternal::ProxyHandle<::IceProxy::armarx::Log>
LogPrx;
81 using CoutType = std::basic_ostream<char, std::char_traits<char>>;
102 static void setProxy(
const std::string& componentName,
LogPrx logProxy);
112 template <
typename T>
116 currentMessage << message;
143 const StandardEndLine&
150 static std::string GetColorCodeString(
MessageTypeT verbosityLevel);
151 static std::string GetColorCodeString(ConsoleColor colorCode);
153 static std::string CreateBackTrace(
int linesToSkip = 1);
202 static MessageTypeT StringToLevel(
const std::string& typeStr);
210 static void SetGlobalMinimumLoggingLevel(
MessageTypeT level);
217 static void SetLoggingActivated(
bool activated =
true,
bool showMessage =
true);
218 static void SetSendLoggingActivated(
bool activated =
true);
220 static void SetColoredConsoleActivated(
bool activated =
true);
221 static long getThreadId();
222 static long getProcessId();
223 template <
typename T>
225 static std::string
CropFunctionName(
const std::string& originalFunctionName);
243 void resetLocation();
245 std::stringstream currentMessage;
248 std::unique_ptr<Impl> impl;
261 LogSender::operator<< <MessageTypeT>(
const MessageTypeT& severity);
280 LogSender::operator<< <LogSender::manipulator>(
const manipulator& manipulator);
297 LogSender::operator<< <SpamFilterDataPtr>(
const SpamFilterDataPtr& spamFilterData);
std::ostream & operator<<(std::ostream &strm, const AbstractInterface &a)
#define ARMARXCORE_IMPORT_EXPORT
Wrapper for the Log IceStorm topic with convenience methods for logging.
static std::string GetTypeString()
static std::string CropFunctionName(const std::string &originalFunctionName)
static void SetLoggingGroup(const std::string &loggingGroup)
static LogSenderPtr createLogSender()
std::basic_ostream< char, std::char_traits< char > > CoutType
void(LogSender::* manipulator)()
void log(MessageTypeT severity, std::string message)
Sends a message to the logging component.
static void SetComponentName(const std::string &componentName)
void flush()
Sends the current message to the log and resets the content.
static void setProxy(const std::string &componentName, LogPrx logProxy)
This file offers overloads of toIce() and fromIce() functions for STL container types.
::IceInternal::ProxyHandle<::IceProxy::armarx::Log > LogPrx
std::shared_ptr< SpamFilterData > SpamFilterDataPtr
const LogSender::manipulator flush
std::shared_ptr< LogSender > LogSenderPtr
Typedef of std::shared_ptr for convenience.