|
#define | _QI_LOG_HPP_ |
|
#define | qiLogCategory(Cat) |
|
#define | qiLogDebug(...) _QI_LOG_MESSAGE_STREAM(LogLevel_Debug, Debug , __VA_ARGS__) |
|
#define | qiLogDebugF(Msg,...) _QI_LOG_MESSAGE(LogLevel_Debug, _QI_LOG_FORMAT(Msg, __VA_ARGS__)) |
|
#define | qiLogVerbose(...) _QI_LOG_MESSAGE_STREAM(LogLevel_Verbose, Verbose, __VA_ARGS__) |
| Log in verbose mode. This level is not shown by default. More...
|
|
#define | qiLogVerboseF(Msg,...) _QI_LOG_MESSAGE(LogLevel_Verbose, _QI_LOG_FORMAT(Msg, __VA_ARGS__)) |
|
#define | qiLogInfo(...) _QI_LOG_MESSAGE_STREAM(LogLevel_Info, Info, __VA_ARGS__) |
| Log in info mode. More...
|
|
#define | qiLogInfoF(Msg,...) _QI_LOG_MESSAGE(LogLevel_Info, _QI_LOG_FORMAT(Msg, __VA_ARGS__)) |
|
#define | qiLogWarning(...) _QI_LOG_MESSAGE_STREAM(LogLevel_Warning, Warning, __VA_ARGS__) |
| Log in warning mode. More...
|
|
#define | qiLogWarningF(Msg,...) _QI_LOG_MESSAGE(LogLevel_Warning, _QI_LOG_FORMAT(Msg, __VA_ARGS__)) |
|
#define | qiLogError(...) _QI_LOG_MESSAGE_STREAM(LogLevel_Error, Error, __VA_ARGS__) |
| Log in error mode. More...
|
|
#define | qiLogErrorF(Msg,...) _QI_LOG_MESSAGE(LogLevel_Error, _QI_LOG_FORMAT(Msg, __VA_ARGS__)) |
|
#define | qiLogFatal(...) _QI_LOG_MESSAGE_STREAM(LogLevel_Fatal, Fatal, __VA_ARGS__) |
| Log in fatal mode. More...
|
|
#define | qiLogFatalF(Msg,...) _QI_LOG_MESSAGE(LogLevel_Fatal, _QI_LOG_FORMAT(Msg, __VA_ARGS__)) |
|
|
using | qi::LogContext = int |
| Logs context attribute value. More...
|
|
using | qi::log::SubscriberId = unsigned int |
| Subscriber Identifier. More...
|
|
typedef unsigned int | qi::log::Subscriber |
|
using | qi::log::logFuncHandler = boost::function7< void, const qi::LogLevel, const qi::os::timeval, const char *, const char *, const char *, const char *, int > |
| Boost delegate to log function (verbosity lv, date of log, category, message, file, function, line). More...
|
|
using | qi::log::Handler = boost::function8< void, const qi::LogLevel, const qi::Clock::time_point, const qi::SystemClock::time_point, const char *, const char *, const char *, const char *, int > |
| Boost delegate to log function (verbosity lv, dates of log, category, message, file, function, line). More...
|
|
|
void | qi::log::init (qi::LogLevel verb=qi::LogLevel_Info, qi::LogContext context=qi::LogContextAttr_ShortVerbosity|qi::LogContextAttr_Tid|qi::LogContextAttr_Category, bool synchronous=true) |
| Initialization of the logging system Creates and registers the default log handler according to QI_DEFAULT_LOGHANDLER environment variable and compilation flags WITH_SYSTEMD, ANDROID and BOOST_OS_WINDOWS. More...
|
|
void | qi::log::destroy () |
| Stop and flush the logging system. More...
|
|
void | qi::log::log (const qi::LogLevel verb, const char *category, const char *msg, const char *file="", const char *fct="", const int line=0) |
| Log function. You should call qiLog* macros instead. More...
|
|
void | qi::log::log (const qi::LogLevel verb, CategoryType category, const std::string &msg, const char *file="", const char *fct="", const int line=0) |
| Log function. You should call qiLog* macros instead. More...
|
|
const char * | qi::log::logLevelToString (const qi::LogLevel verb, bool verbose=true) |
| Convert log verbosity to a readable string. More...
|
|
qi::LogLevel | qi::log::stringToLogLevel (const char *verb) |
| Convert string to log verbosity. More...
|
|
void | qi::log::setLogLevel (const qi::LogLevel lv, SubscriberId sub=0) |
| Set log Level. More...
|
|
qi::LogLevel | qi::log::logLevel (SubscriberId sub=0) |
| Get log verbosity. More...
|
|
std::vector< std::string > | qi::log::categories () |
| Get the list of all categories. More...
|
|
CategoryType | qi::log::addCategory (const std::string &name) |
| Add/get a category. More...
|
|
void | qi::log::enableCategory (const std::string &cat, SubscriberId sub=0) |
| Set category to current verbosity level. Globbing is supported. More...
|
|
void | qi::log::disableCategory (const std::string &cat, SubscriberId sub=0) |
| Set category to silent log level. Globbing is supported. More...
|
|
bool | qi::log::isVisible (CategoryType category, qi::LogLevel level) |
| Check if the given combination of category and level is enable. More...
|
|
bool | qi::log::isVisible (const std::string &category, qi::LogLevel level) |
| Check if the given combination of category and level is enable. More...
|
|
void | qi::log::addFilters (const std::string &rules, SubscriberId sub=0) |
| Parse and execute a set of verbosity rules. More...
|
|
void | qi::log::addFilter (const std::string &cat, qi::LogLevel level, SubscriberId sub=0) |
| Set per-subscriber category to level. Globbing is supported. More...
|
|
void | qi::log::setContext (int ctx) |
| Set log context verbosity. More...
|
|
int | qi::log::context () |
| Get log context. More...
|
|
void | qi::log::setColor (LogColor color) |
| Set log color. More...
|
|
LogColor | qi::log::color () |
| Get log color. More...
|
|
void | qi::log::setSynchronousLog (bool sync) |
| Enables or disables synchronous logs. More...
|
|
SubscriberId | qi::log::addHandler (const std::string &name, qi::log::Handler fct, qi::LogLevel defaultLevel=LogLevel_Info) |
| Add a log handler for this process' logs. More...
|
|
SubscriberId | qi::log::addLogHandler (const std::string &name, qi::log::logFuncHandler fct, qi::LogLevel defaultLevel=LogLevel_Info) |
| Add a log handler. More...
|
|
void | qi::log::removeHandler (const std::string &name) |
| Remove a log handler. More...
|
|
void | qi::log::removeLogHandler (const std::string &name) |
| Remove a log handler. More...
|
|
void | qi::log::flush () |
| Flush asynchronous logs. More...
|
|
void | qi::log::setVerbosity (SubscriberId sub, const qi::log::LogLevel lv) |
|
void | qi::log::setCategory (SubscriberId sub, const std::string &cat, qi::log::LogLevel level) |
|
template<typename O , typename S > |
ExceptionLogError< ka::Decay
< O >, ka::Decay< S > > | qi::exceptionLogError (S &&category, O &&prefix) |
|
Convenient log macro.
Definition in file log.hpp.