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);
103 static void SetComponentName(
const std::string& componentName);
104 static void SetLoggingGroup(
const std::string& loggingGroup);
112 template <
typename T>
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);