|
#include <boost/current_function.hpp>
#include <ArmarXCore/util/CPPUtility/trace.h>
#include <ArmarXCore/core/logging/LogSender.h>
#include <ArmarXCore/core/util/StringHelpers.h>
Go to the source code of this file.
Classes | |
class | Logging |
Base Class for all Logging classes. More... | |
Namespaces | |
armarx | |
This file offers overloads of toIce() and fromIce() functions for STL container types. | |
Typedefs | |
using | LogSenderPtr = std::shared_ptr< LogSender > |
Typedef of std::shared_ptr for convenience. More... | |
using | SpamFilterDataPtr = std::shared_ptr< SpamFilterData > |
Functions | |
bool | checkLogLevel (armarx::MessageTypeT level) |
armarx::SpamFilterDataPtr | deactivateSpam (const std::string &identifier, float deactivationDurationSec=10.0f, bool deactivate=true) |
armarx::SpamFilterDataPtr | deactivateSpam (float deactivationDurationSec=10.0f, const std::string &identifier="", bool deactivate=true) |
armarx::LogSenderPtr | loghelper (const char *file, int line, const char *function) |
Variables | |
const armarx::LogSender | _GlobalDummyLogSender |
Dummy instance for faster skipped logging (if verbosity level is lower than selected level) - DO NOT USE THIS VARIABLE. More... | |
#define _ARMARX_LOG_INTERNAL_ | ( | level | ) | (checkLogLevel(level)) ? _GlobalDummyLogSender : (*loghelper(__FILE__, __LINE__, ARMARX_FUNCTION)) << level |
#define _ARMARX_LOG_INTERNAL_S | ( | level | ) | (level < ::armarx::LogSender::GetGlobalMinimumLoggingLevel()) ? _GlobalDummyLogSender : ARMARX_LOG_S << level |
#define ARMARX_STREAM_PRINTER ::armarx::detail::StreamPrinterTag::tag * [&](std::ostream& out) |
use this macro to write output code that is executed when printed and thus not executed if the debug level prevents printing.
In the code you should write to the stream out to output messages.
Example:
This code will only run if the effective debug level is Debug and only entries are printed which satisfy the if condition
bool checkLogLevel | ( | armarx::MessageTypeT | level | ) |
Definition at line 136 of file Logging.cpp.
|
inline |
armarx::SpamFilterDataPtr deactivateSpam | ( | float | deactivationDurationSec = 10.0f , |
const std::string & | identifier = "" , |
||
bool | deactivate = true |
||
) |
Definition at line 143 of file Logging.cpp.
armarx::LogSenderPtr loghelper | ( | const char * | file, |
int | line, | ||
const char * | function | ||
) |
Definition at line 131 of file Logging.cpp.
const armarx::LogSender _GlobalDummyLogSender |