RSTools 3.1.0
Versatile C++20 utility library
Loading...
Searching...
No Matches
LogRegistry.hpp File Reference
#include "RST/log/Log.hpp"
#include <atomic>
#include <cstddef>
#include <functional>
#include <memory>
#include <mutex>
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>

Go to the source code of this file.

Classes

class  RST::Log::Registry
 Global registry of named loggers, including the default logger used by the RST_LOG_* macros. More...
 

Namespaces

namespace  RST
 Root namespace of RSTools.
 
namespace  RST::Log
 Thread-safe logging: loggers, sinks, patterns and macros.
 

Macros

Macros on the default logger

Log on the default logger, like RST_LOG_L(); RST_LOG takes the level as first argument.

#define RST_LOG(level, ...)   RST_LOG_L(::RST::Log::Registry::defaultLoggerRef(), level, __VA_ARGS__)
 
#define RST_LOG_TRACE(...)   RST_LOGGER_TRACE(::RST::Log::Registry::defaultLoggerRef(), __VA_ARGS__)
 
#define RST_LOG_DEBUG(...)   RST_LOGGER_DEBUG(::RST::Log::Registry::defaultLoggerRef(), __VA_ARGS__)
 
#define RST_LOG_INFO(...)   RST_LOGGER_INFO(::RST::Log::Registry::defaultLoggerRef(), __VA_ARGS__)
 
#define RST_LOG_WARN(...)   RST_LOGGER_WARN(::RST::Log::Registry::defaultLoggerRef(), __VA_ARGS__)
 
#define RST_LOG_ERROR(...)   RST_LOGGER_ERROR(::RST::Log::Registry::defaultLoggerRef(), __VA_ARGS__)
 
#define RST_LOG_FATAL(...)   RST_LOGGER_FATAL(::RST::Log::Registry::defaultLoggerRef(), __VA_ARGS__)
 

Macro Definition Documentation

◆ RST_LOG

#define RST_LOG (   level,
  ... 
)    RST_LOG_L(::RST::Log::Registry::defaultLoggerRef(), level, __VA_ARGS__)

◆ RST_LOG_TRACE

#define RST_LOG_TRACE (   ...)    RST_LOGGER_TRACE(::RST::Log::Registry::defaultLoggerRef(), __VA_ARGS__)

◆ RST_LOG_DEBUG

#define RST_LOG_DEBUG (   ...)    RST_LOGGER_DEBUG(::RST::Log::Registry::defaultLoggerRef(), __VA_ARGS__)

◆ RST_LOG_INFO

#define RST_LOG_INFO (   ...)    RST_LOGGER_INFO(::RST::Log::Registry::defaultLoggerRef(), __VA_ARGS__)
Examples
log_basic.cpp.

◆ RST_LOG_WARN

#define RST_LOG_WARN (   ...)    RST_LOGGER_WARN(::RST::Log::Registry::defaultLoggerRef(), __VA_ARGS__)
Examples
log_basic.cpp.

◆ RST_LOG_ERROR

#define RST_LOG_ERROR (   ...)    RST_LOGGER_ERROR(::RST::Log::Registry::defaultLoggerRef(), __VA_ARGS__)
Examples
log_basic.cpp.

◆ RST_LOG_FATAL

#define RST_LOG_FATAL (   ...)    RST_LOGGER_FATAL(::RST::Log::Registry::defaultLoggerRef(), __VA_ARGS__)