Go to the documentation of this file.
23 #define URCL_LOG_DEBUG(...) urcl::log(__FILE__, __LINE__, urcl::LogLevel::DEBUG, __VA_ARGS__)
24 #define URCL_LOG_WARN(...) urcl::log(__FILE__, __LINE__, urcl::LogLevel::WARN, __VA_ARGS__)
25 #define URCL_LOG_INFO(...) urcl::log(__FILE__, __LINE__, urcl::LogLevel::INFO, __VA_ARGS__)
26 #define URCL_LOG_ERROR(...) urcl::log(__FILE__, __LINE__, urcl::LogLevel::ERROR, __VA_ARGS__)
27 #define URCL_LOG_FATAL(...) urcl::log(__FILE__, __LINE__, urcl::LogLevel::FATAL, __VA_ARGS__)
59 virtual void log(
const char* file,
int line,
LogLevel loglevel,
const char*
log) = 0;
90 void log(
const char* file,
int line,
LogLevel level,
const char* fmt, ...);
void setLogLevel(LogLevel level)
Set log level this will disable messages with lower log level.
void registerLogHandler(std::unique_ptr< LogHandler > loghandler)
Register a new LogHandler object, for handling log messages.
void unregisterLogHandler()
Unregister current log handler, this will enable default log handler.
virtual ~LogHandler()=default
Inherit from this class to change the behavior when logging messages.
void log(const char *file, int line, LogLevel level, const char *fmt,...)
Log a message, this is used internally by the macros to unpack the log message. Use the macros instea...
LogLevel
Different log levels.
virtual void log(const char *file, int line, LogLevel loglevel, const char *log)=0
Function to log a message.
ur_client_library
Author(s): Thomas Timm Andersen, Simon Rasmussen, Felix Exner, Lea Steffen, Tristan Schnell
autogenerated on Mon May 26 2025 02:35:58