![]() |
LogIt++
Header-only, macro-first C++ logging library
|
Provides various logging macros for different log levels and options. More...
#include "config.hpp"#include "utils.hpp"#include "Logger.hpp"#include "detail/LogStream.hpp"#include "detail/ScopeTimer.hpp"#include "detail/system_error_macros.hpp"Go to the source code of this file.
Macros | |
| #define | LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOG_MACROS_HPP_INCLUDED |
| #define | LOGIT_LOG_AND_RETURN_NOARGS(level, format) |
| Logs a message without arguments. | |
| #define | LOGIT_LOG_AND_RETURN_NOARGS_WITH_INDEX(level, index, format) |
| Logs a message to a specific logger without arguments. | |
| #define | LOGIT_LOG_AND_RETURN(level, format, arg_names, ...) |
| Logs a message with arguments. | |
| #define | LOGIT_LOG_AND_RETURN_PRINT(level, arg_names, ...) |
| Logs a message with arguments, but prints them without using a format string. | |
| #define | LOGIT_LOG_AND_RETURN_WITH_INDEX(level, index, format, arg_names, ...) |
| Logs a message with arguments to a specific logger. | |
| #define | LOGIT_LOG_AND_RETURN_PRINT_WITH_INDEX(level, index, arg_names, ...) |
| Logs a message with arguments to a specific logger, but prints them without using a format string. | |
| #define | LOGIT_LOG_AND_RETURN_FMT(level, format, arg_names, ...) |
| #define | LOGIT_LOG_AND_RETURN_FMT_WITH_INDEX(level, index, format, arg_names, ...) |
| #define | LOGIT_RAW(message) |
| Logs an already formatted raw message without applying logger formatter patterns or level filters. | |
| #define | LOGIT_RAW_TO(index, message) |
| Logs an already formatted raw message to a specific logger. | |
| #define | LOGIT_RAW_IF(condition, message) |
| Logs a raw message when the condition is true. | |
| #define | LOGIT_SECTION(name) |
Logs a raw section header in [name] form. | |
| #define | LOGIT_SECTION_TO(index, name) |
| Logs a raw section header to a specific logger. | |
| #define | LOGIT_SECTION_IF(condition, name) |
| Logs a raw section header when the condition is true. | |
| #define | LOGIT_TRACE(...) |
| #define | LOGIT_TRACE0() |
| #define | LOGIT_0TRACE() |
| #define | LOGIT_0_TRACE() |
| #define | LOGIT_NOARGS_TRACE() |
| #define | LOGIT_FORMAT_TRACE(fmt, ...) |
| #define | LOGIT_PRINT_TRACE(...) |
| #define | LOGIT_PRINTF_TRACE(fmt, ...) |
| #define | LOGITF_TRACE(fmt_str, ...) |
| #define | LOGIT_FMT_TRACE(fmt_str, ...) |
| #define | LOGIT_TRACE_TO(index, ...) |
| #define | LOGIT_TRACE0_TO(index) |
| #define | LOGIT_0TRACE_TO(index) |
| #define | LOGIT_0_TRACE_TO(index) |
| #define | LOGIT_NOARGS_TRACE_TO(index) |
| #define | LOGIT_FORMAT_TRACE_TO(index, fmt, ...) |
| #define | LOGIT_PRINT_TRACE_TO(index, ...) |
| #define | LOGIT_PRINTF_TRACE_TO(index, fmt, ...) |
| #define | LOGITF_TRACE_TO(index, fmt_str, ...) |
| #define | LOGIT_FMT_TRACE_TO(index, fmt_str, ...) |
| #define | LOGIT_INFO(...) |
| #define | LOGIT_INFO0() |
| #define | LOGIT_0INFO() |
| #define | LOGIT_0_INFO() |
| #define | LOGIT_NOARGS_INFO() |
| #define | LOGIT_FORMAT_INFO(fmt, ...) |
| #define | LOGIT_PRINT_INFO(...) |
| #define | LOGIT_PRINTF_INFO(fmt, ...) |
| #define | LOGITF_INFO(fmt_str, ...) |
| #define | LOGIT_FMT_INFO(fmt_str, ...) |
| #define | LOGIT_INFO_TO(index, ...) |
| #define | LOGIT_INFO0_TO(index) |
| #define | LOGIT_0INFO_TO(index) |
| #define | LOGIT_0_INFO_TO(index) |
| #define | LOGIT_NOARGS_INFO_TO(index) |
| #define | LOGIT_FORMAT_INFO_TO(index, fmt, ...) |
| #define | LOGIT_PRINT_INFO_TO(index, ...) |
| #define | LOGIT_PRINTF_INFO_TO(index, fmt, ...) |
| #define | LOGITF_INFO_TO(index, fmt_str, ...) |
| #define | LOGIT_FMT_INFO_TO(index, fmt_str, ...) |
| #define | LOGIT_DEBUG(...) |
| #define | LOGIT_DEBUG0() |
| #define | LOGIT_0DEBUG() |
| #define | LOGIT_0_DEBUG() |
| #define | LOGIT_NOARGS_DEBUG() |
| #define | LOGIT_FORMAT_DEBUG(fmt, ...) |
| #define | LOGIT_PRINT_DEBUG(...) |
| #define | LOGIT_PRINTF_DEBUG(fmt, ...) |
| #define | LOGITF_DEBUG(fmt_str, ...) |
| #define | LOGIT_FMT_DEBUG(fmt_str, ...) |
| #define | LOGIT_DEBUG_TO(index, ...) |
| #define | LOGIT_DEBUG0_TO(index) |
| #define | LOGIT_0DEBUG_TO(index) |
| #define | LOGIT_0_DEBUG_TO(index) |
| #define | LOGIT_NOARGS_DEBUG_TO(index) |
| #define | LOGIT_FORMAT_DEBUG_TO(index, fmt, ...) |
| #define | LOGIT_PRINT_DEBUG_TO(index, ...) |
| #define | LOGIT_PRINTF_DEBUG_TO(index, fmt, ...) |
| #define | LOGITF_DEBUG_TO(index, fmt_str, ...) |
| #define | LOGIT_FMT_DEBUG_TO(index, fmt_str, ...) |
| #define | LOGIT_WARN(...) |
| #define | LOGIT_WARN0() |
| #define | LOGIT_0WARN() |
| #define | LOGIT_0_WARN() |
| #define | LOGIT_NOARGS_WARN() |
| #define | LOGIT_FORMAT_WARN(fmt, ...) |
| #define | LOGIT_PRINT_WARN(...) |
| #define | LOGIT_PRINTF_WARN(fmt, ...) |
| #define | LOGITF_WARN(fmt_str, ...) |
| #define | LOGIT_FMT_WARN(fmt_str, ...) |
| #define | LOGIT_WARN_TO(index, ...) |
| #define | LOGIT_WARN0_TO(index) |
| #define | LOGIT_0WARN_TO(index) |
| #define | LOGIT_0_WARN_TO(index) |
| #define | LOGIT_NOARGS_WARN_TO(index) |
| #define | LOGIT_FORMAT_WARN_TO(index, fmt, ...) |
| #define | LOGIT_PRINT_WARN_TO(index, ...) |
| #define | LOGIT_PRINTF_WARN_TO(index, fmt, ...) |
| #define | LOGITF_WARN_TO(index, fmt_str, ...) |
| #define | LOGIT_FMT_WARN_TO(index, fmt_str, ...) |
| #define | LOGIT_ERROR(...) |
| #define | LOGIT_ERROR0() |
| #define | LOGIT_0ERROR() |
| #define | LOGIT_0_ERROR() |
| #define | LOGIT_NOARGS_ERROR() |
| #define | LOGIT_FORMAT_ERROR(fmt, ...) |
| #define | LOGIT_PRINT_ERROR(...) |
| #define | LOGIT_PRINTF_ERROR(fmt, ...) |
| #define | LOGITF_ERROR(fmt_str, ...) |
| #define | LOGIT_FMT_ERROR(fmt_str, ...) |
| #define | LOGIT_ERROR_TO(index, ...) |
| #define | LOGIT_ERROR0_TO(index) |
| #define | LOGIT_0ERROR_TO(index) |
| #define | LOGIT_0_ERROR_TO(index) |
| #define | LOGIT_NOARGS_ERROR_TO(index) |
| #define | LOGIT_FORMAT_ERROR_TO(index, fmt, ...) |
| #define | LOGIT_PRINT_ERROR_TO(index, ...) |
| #define | LOGIT_PRINTF_ERROR_TO(index, fmt, ...) |
| #define | LOGITF_ERROR_TO(index, fmt_str, ...) |
| #define | LOGIT_FMT_ERROR_TO(index, fmt_str, ...) |
| #define | LOGIT_FATAL(...) |
| #define | LOGIT_FATAL0() |
| #define | LOGIT_0FATAL() |
| #define | LOGIT_0_FATAL() |
| #define | LOGIT_NOARGS_FATAL() |
| #define | LOGIT_FORMAT_FATAL(fmt, ...) |
| #define | LOGIT_PRINT_FATAL(...) |
| #define | LOGIT_PRINTF_FATAL(fmt, ...) |
| #define | LOGITF_FATAL(fmt_str, ...) |
| #define | LOGIT_FMT_FATAL(fmt_str, ...) |
| #define | LOGIT_FATAL_TO(index, ...) |
| #define | LOGIT_FATAL0_TO(index) |
| #define | LOGIT_0FATAL_TO(index) |
| #define | LOGIT_0_FATAL_TO(index) |
| #define | LOGIT_NOARGS_FATAL_TO(index) |
| #define | LOGIT_FORMAT_FATAL_TO(index, fmt, ...) |
| #define | LOGIT_PRINT_FATAL_TO(index, ...) |
| #define | LOGIT_PRINTF_FATAL_TO(index, fmt, ...) |
| #define | LOGITF_FATAL_TO(index, fmt_str, ...) |
| #define | LOGIT_FMT_FATAL_TO(index, fmt_str, ...) |
| #define | LOGIT_ADD_LOGGER(logger_type, logger_args, formatter_type, formatter_args) |
| Macro for adding a logger with a specific formatter. | |
| #define | LOGIT_ADD_LOGGER_SINGLE_MODE(logger_type, logger_args, formatter_type, formatter_args) |
| Macro for adding a logger with a specific formatter in single_mode. | |
| #define | LOGIT_ADD_CONSOLE(pattern, async) |
| Macro for adding a console logger with a specific pattern and mode. | |
| #define | LOGIT_ADD_CONSOLE_SINGLE_MODE(pattern, async) |
| Macro for adding a console logger in single_mode with a specific pattern and mode. | |
| #define | LOGIT_ADD_CONSOLE_CONFIG(config, pattern) |
| Add a console logger from an explicit ConsoleLogger::Config. | |
| #define | LOGIT_ADD_CONSOLE_CONFIG_SINGLE_MODE(config, pattern) |
| Add a console logger from an explicit ConsoleLogger::Config in single_mode. | |
| #define | LOGIT_ADD_CONSOLE_EX(pattern, async, use_dedicated_executor, queue_capacity, queue_policy) |
| Add a console logger with explicit async executor settings. | |
| #define | LOGIT_ADD_CONSOLE_EX_SINGLE_MODE(pattern, async, use_dedicated_executor, queue_capacity, queue_policy) |
| Add a console logger with explicit async executor settings in single_mode. | |
| #define | LOGIT_ADD_CONSOLE_DEDICATED(pattern, queue_capacity, queue_policy) |
| Add an async console logger backed by a dedicated executor. | |
| #define | LOGIT_ADD_CONSOLE_DEDICATED_SINGLE_MODE(pattern, queue_capacity, queue_policy) |
| Add an async console logger backed by a dedicated executor in single_mode. | |
| #define | LOGIT_ADD_CONSOLE_STREAM(stream, pattern, async) |
| Add a console logger writing to a caller-provided std::ostream& (e.g. | |
| #define | LOGIT_ADD_CONSOLE_STREAM_SINGLE_MODE(stream, pattern, async) |
| Add a console logger writing to a caller-provided std::ostream& in single_mode. | |
| #define | LOGIT_ADD_CONSOLE_STREAM_EX(stream, config, pattern) |
| Add a console logger from an explicit Config writing to a caller-provided std::ostream&. | |
| #define | LOGIT_ADD_CONSOLE_STREAM_EX_SINGLE_MODE(stream, config, pattern) |
| Add a console logger from an explicit Config writing to a caller-provided std::ostream& in single_mode. | |
| #define | LOGIT_ADD_CONSOLE_DEFAULT() |
| Macro for adding the default console logger. | |
| #define | LOGIT_ADD_CONSOLE_DEFAULT_SINGLE_MODE() |
| Macro for adding the default console logger in single_mode. | |
| #define | LOGIT_ADD_FILE_LOGGER(directory, async, auto_delete_days, pattern) |
| Macro for adding a file logger with specific settings. | |
| #define | LOGIT_ADD_FILE_LOGGER_SINGLE_MODE(directory, async, auto_delete_days, pattern) |
| Macro for adding a file logger in single_mode with specific settings. | |
| #define | LOGIT_ADD_FILE_LOGGER_CONFIG(config, pattern) |
| Add a file logger from an explicit FileLogger::Config. | |
| #define | LOGIT_ADD_FILE_LOGGER_CONFIG_SINGLE_MODE(config, pattern) |
| Add a file logger from an explicit FileLogger::Config in single_mode. | |
| #define | LOGIT_ADD_FILE_LOGGER_EX(directory, async, auto_delete_days, pattern, use_dedicated_executor, queue_capacity, queue_policy) |
| Add a file logger with explicit async executor settings. | |
| #define | LOGIT_ADD_FILE_LOGGER_EX_SINGLE_MODE(directory, async, auto_delete_days, pattern, use_dedicated_executor, queue_capacity, queue_policy) |
| Add a file logger with explicit async executor settings in single_mode. | |
| #define | LOGIT_ADD_FILE_LOGGER_DEDICATED(directory, auto_delete_days, pattern, queue_capacity, queue_policy) |
| Add an async file logger backed by a dedicated executor. | |
| #define | LOGIT_ADD_FILE_LOGGER_DEDICATED_SINGLE_MODE(directory, auto_delete_days, pattern, queue_capacity, queue_policy) |
| Add an async file logger backed by a dedicated executor in single_mode. | |
| #define | LOGIT_ADD_FILE_LOGGER_DEFAULT() |
| Macro for adding the default file logger. | |
| #define | LOGIT_ADD_FILE_LOGGER_DEFAULT_SINGLE_MODE() |
| Macro for adding the default file logger in single_mode. | |
| #define | LOGIT_ADD_FILE_LOGGER_WITH_ROTATION(dir, async, days, pattern, max_bytes, max_files) |
| #define | LOGIT_ADD_FILE_LOGGER_WITH_ROTATION_SINGLE_MODE(dir, async, days, pattern, max_bytes, max_files) |
| #define | LOGIT_ADD_FILE_LOGGER_WITH_ROTATION_EX(dir, async, days, pattern, max_bytes, max_files, use_dedicated_executor, queue_capacity, queue_policy) |
| #define | LOGIT_ADD_FILE_LOGGER_WITH_ROTATION_EX_SINGLE_MODE(dir, async, days, pattern, max_bytes, max_files, use_dedicated_executor, queue_capacity, queue_policy) |
| #define | LOGIT_ADD_FILE_LOGGER_WITH_ROTATION_DEDICATED(dir, days, pattern, max_bytes, max_files, queue_capacity, queue_policy) |
| #define | LOGIT_ADD_FILE_LOGGER_WITH_ROTATION_DEDICATED_SINGLE_MODE(dir, days, pattern, max_bytes, max_files, queue_capacity, queue_policy) |
| #define | LOGIT_ADD_FILE_LOGGER_DEFAULT_WITH_ROTATION() |
| #define | LOGIT_ADD_UNIQUE_FILE_LOGGER(directory, async, auto_delete_days, hash_length, pattern) |
| Macro for adding a unique file logger with custom parameters. | |
| #define | LOGIT_ADD_UNIQUE_FILE_LOGGER_SINGLE_MODE(directory, async, auto_delete_days, hash_length, pattern) |
| Macro for adding a unique file logger in single_mode with custom parameters. | |
| #define | LOGIT_ADD_UNIQUE_FILE_LOGGER_CONFIG(config, pattern) |
| Add a unique file logger from an explicit UniqueFileLogger::Config. | |
| #define | LOGIT_ADD_UNIQUE_FILE_LOGGER_CONFIG_SINGLE_MODE(config, pattern) |
| Add a unique file logger from an explicit UniqueFileLogger::Config in single_mode. | |
| #define | LOGIT_ADD_UNIQUE_FILE_LOGGER_EX(directory, async, auto_delete_days, hash_length, pattern, use_dedicated_executor, queue_capacity, queue_policy) |
| Add a unique file logger with explicit async executor settings. | |
| #define | LOGIT_ADD_UNIQUE_FILE_LOGGER_EX_SINGLE_MODE(directory, async, auto_delete_days, hash_length, pattern, use_dedicated_executor, queue_capacity, queue_policy) |
| Add a unique file logger with explicit async executor settings in single_mode. | |
| #define | LOGIT_ADD_UNIQUE_FILE_LOGGER_DEDICATED(directory, auto_delete_days, hash_length, pattern, queue_capacity, queue_policy) |
| Add an async unique file logger backed by a dedicated executor. | |
| #define | LOGIT_ADD_UNIQUE_FILE_LOGGER_DEDICATED_SINGLE_MODE(directory, auto_delete_days, hash_length, pattern, queue_capacity, queue_policy) |
| Add an async unique file logger backed by a dedicated executor in single_mode. | |
| #define | LOGIT_ADD_UNIQUE_FILE_LOGGER_DEFAULT() |
| Macro for adding the default unique file logger. | |
| #define | LOGIT_ADD_UNIQUE_FILE_LOGGER_DEFAULT_SINGLE_MODE() |
| Macro for adding the default unique file logger in single_mode. | |
| #define | LOGIT_ADD_CRASH_LOGGER(path, buffer_size) |
| Macro for adding a crash logger with custom configuration. | |
| #define | LOGIT_ADD_CRASH_LOGGER_SINGLE_MODE(path, buffer_size) |
| Macro for adding a crash logger with custom configuration in single_mode. | |
| #define | LOGIT_ADD_CRASH_LOGGER_DEFAULT() |
| Macro for adding a crash logger with default configuration. | |
| #define | LOGIT_ADD_MEMORY_LOGGER(max_records, max_bytes, max_age_ms) |
| Macro for adding an in-memory logger with explicit limits. | |
| #define | LOGIT_ADD_MEMORY_LOGGER_SINGLE_MODE(max_records, max_bytes, max_age_ms) |
| Macro for adding an in-memory logger in single_mode with explicit limits. | |
| #define | LOGIT_ADD_MEMORY_LOGGER_DEFAULT() |
| Macro for adding an in-memory logger with default retention settings. | |
| #define | LOGIT_ADD_MEMORY_LOGGER_DEFAULT_SINGLE_MODE() |
| Macro for adding an in-memory logger in single_mode with default retention settings. | |
| #define | LOGIT_ADD_WINDOWS_DEBUG(async) |
| Macro for adding a Windows debug logger. | |
| #define | LOGIT_ADD_WINDOWS_DEBUG_SINGLE_MODE(async) |
| Macro for adding a Windows debug logger in single_mode. | |
| #define | LOGIT_ADD_WINDOWS_DEBUG_CONFIG(config) |
| Add a Windows debug logger from an explicit WindowsDebugLogger::Config. | |
| #define | LOGIT_ADD_WINDOWS_DEBUG_CONFIG_SINGLE_MODE(config) |
| Add a Windows debug logger from an explicit WindowsDebugLogger::Config in single_mode. | |
| #define | LOGIT_ADD_WINDOWS_DEBUG_EX(async, use_dedicated_executor, queue_capacity, queue_policy) |
| Add a Windows debug logger with explicit async executor settings. | |
| #define | LOGIT_ADD_WINDOWS_DEBUG_EX_SINGLE_MODE(async, use_dedicated_executor, queue_capacity, queue_policy) |
| Add a Windows debug logger with explicit async executor settings in single_mode. | |
| #define | LOGIT_ADD_WINDOWS_DEBUG_DEDICATED(queue_capacity, queue_policy) |
| Add an async Windows debug logger backed by a dedicated executor. | |
| #define | LOGIT_ADD_WINDOWS_DEBUG_DEDICATED_SINGLE_MODE(queue_capacity, queue_policy) |
| Add an async Windows debug logger backed by a dedicated executor in single_mode. | |
| #define | LOGIT_ADD_WINDOWS_DEBUG_DEFAULT() |
| Macro for adding a Windows debug logger with default settings. | |
| #define | LOGIT_ADD_SYSLOG(ident, facility, async) |
| Macro for adding a syslog logger with custom configuration. | |
| #define | LOGIT_ADD_SYSLOG_SINGLE_MODE(ident, facility, async) |
| Macro for adding a syslog logger with custom configuration in single_mode. | |
| #define | LOGIT_ADD_SYSLOG_CONFIG(config) |
| Add a syslog logger from an explicit SyslogLogger::Config. | |
| #define | LOGIT_ADD_SYSLOG_CONFIG_SINGLE_MODE(config) |
| Add a syslog logger from an explicit SyslogLogger::Config in single_mode. | |
| #define | LOGIT_ADD_SYSLOG_EX(ident, facility, async, use_dedicated_executor, queue_capacity, queue_policy) |
| Add a syslog logger with explicit async executor settings. | |
| #define | LOGIT_ADD_SYSLOG_EX_SINGLE_MODE(ident, facility, async, use_dedicated_executor, queue_capacity, queue_policy) |
| Add a syslog logger with explicit async executor settings in single_mode. | |
| #define | LOGIT_ADD_SYSLOG_DEDICATED(ident, facility, queue_capacity, queue_policy) |
| Add an async syslog logger backed by a dedicated executor. | |
| #define | LOGIT_ADD_SYSLOG_DEDICATED_SINGLE_MODE(ident, facility, queue_capacity, queue_policy) |
| Add an async syslog logger backed by a dedicated executor in single_mode. | |
| #define | LOGIT_ADD_SYSLOG_DEFAULT() |
| Macro for adding a syslog logger with default configuration. | |
| #define | LOGIT_ADD_EVENT_LOG(source_wide, async) |
| Macro for adding a Windows Event Log logger with custom configuration. | |
| #define | LOGIT_ADD_EVENT_LOG_SINGLE_MODE(source_wide, async) |
| Macro for adding a Windows Event Log logger with custom configuration in single_mode. | |
| #define | LOGIT_ADD_EVENT_LOG_CONFIG(config) |
| Add a Windows Event Log logger from an explicit EventLogLogger::Config. | |
| #define | LOGIT_ADD_EVENT_LOG_CONFIG_SINGLE_MODE(config) |
| Add a Windows Event Log logger from an explicit EventLogLogger::Config in single_mode. | |
| #define | LOGIT_ADD_EVENT_LOG_EX(source_wide, async, use_dedicated_executor, queue_capacity, queue_policy) |
| Add a Windows Event Log logger with explicit async executor settings. | |
| #define | LOGIT_ADD_EVENT_LOG_EX_SINGLE_MODE(source_wide, async, use_dedicated_executor, queue_capacity, queue_policy) |
| Add a Windows Event Log logger with explicit async executor settings in single_mode. | |
| #define | LOGIT_ADD_EVENT_LOG_DEDICATED(source_wide, queue_capacity, queue_policy) |
| Add an async Windows Event Log logger backed by a dedicated executor. | |
| #define | LOGIT_ADD_EVENT_LOG_DEDICATED_SINGLE_MODE(source_wide, queue_capacity, queue_policy) |
| Add an async Windows Event Log logger backed by a dedicated executor in single_mode. | |
| #define | LOGIT_ADD_EVENT_LOG_DEFAULT() |
| Macro for adding a Windows Event Log logger with default configuration. | |
| #define | LOGIT_WAIT() |
| Macro for waiting for all asynchronous loggers to finish processing. | |
| #define | LOGIT_SHUTDOWN() |
| Macro for shutting down logger system. | |
| #define | LOGIT_GET_LOGGER_AS(logger_index, logger_type) |
| Retrieves a typed backend pointer from a logger by index. | |
| #define | LOGIT_WITH_LOGGER_AS(logger_index, logger_type, var_name) |
| Executes a code block when the logger backend has the requested type. | |
| #define | LOGIT_GET_LOG_READER(logger_index) |
| Retrieves a read-only log-reader interface from a logger by index. | |
| #define | LOGIT_WITH_LOG_READER(logger_index, var_name) |
| Executes a code block when the logger backend supports ILogReader. | |
| #define | LOGIT_READ_RANGE(logger_index, from_ms, to_ms, limit) |
| Reads a time-range of records from a backend that supports ILogReader. | |
| #define | LOGIT_READ_RECENT(logger_index, limit, period_ms, order) |
| Reads recent records from a backend that supports ILogReader. | |
| #define | LOGIT_READ_RECENT_ASC(logger_index, limit, period_ms) |
| Reads recent records in ascending order (oldest first). | |
| #define | LOGIT_READ_RECENT_DESC(logger_index, limit, period_ms) |
| Reads recent records in descending order (newest first). | |
| #define | LOGIT_GET_LOG_SUBSCRIBER(logger_index) |
| Retrieves a live-subscription interface from a logger by index. | |
| #define | LOGIT_WITH_LOG_SUBSCRIBER(logger_index, var_name) |
| Executes a code block when the logger backend supports ILogSubscriber. | |
| #define | LOGIT_ADD_LOG_CALLBACK(logger_index, callback) |
| Registers a callback to receive newly written log records. | |
| #define | LOGIT_REMOVE_LOG_CALLBACK(logger_index, callback_id) |
| Unregisters a previously added log callback. | |
| #define | LOGIT_FUNCTION __func__ |
| #define | LOGIT_ENUM_TO_STR_CASE(value) |
Expands to a case statement returning the stringified enum value. | |
| #define | LOGIT_LEVEL_TRACE 0 |
| #define | LOGIT_LEVEL_DEBUG 1 |
| #define | LOGIT_LEVEL_INFO 2 |
| #define | LOGIT_LEVEL_WARN 3 |
| #define | LOGIT_LEVEL_ERROR 4 |
| #define | LOGIT_LEVEL_FATAL 5 |
| #define | LOGIT_CONCAT_IMPL(x, y) |
| Concatenate two tokens without macro expansion. | |
| #define | LOGIT_CONCAT(x, y) |
| Concatenate two tokens with macro expansion. | |
| #define | LOGIT_MDC_PUT(key, value) |
| #define | LOGIT_MDC_REMOVE(key) |
| #define | LOGIT_MDC_CLEAR() |
| #define | LOGIT_NDC_PUSH(value) |
| #define | LOGIT_NDC_POP() |
| #define | LOGIT_NDC_CLEAR() |
| #define | LOGIT_NDC_GUARD(value) |
| #define | LOGIT_COMPILED_LEVEL LOGIT_LEVEL_TRACE |
| #define | LOGIT_PERROR_TRACE(message) |
| #define | LOGIT_PERROR_DEBUG(message) |
| #define | LOGIT_PERROR_INFO(message) |
| #define | LOGIT_PERROR_WARN(message) |
| #define | LOGIT_PERROR_ERROR(message) |
| #define | LOGIT_PERROR_FATAL(message) |
| #define | LOGIT_WINERR_TRACE(message) |
| #define | LOGIT_WINERR_DEBUG(message) |
| #define | LOGIT_WINERR_INFO(message) |
| #define | LOGIT_WINERR_WARN(message) |
| #define | LOGIT_WINERR_ERROR(message) |
| #define | LOGIT_WINERR_FATAL(message) |
| #define | LOGIT_SYSERR_TRACE(message) |
| #define | LOGIT_SYSERR_DEBUG(message) |
| #define | LOGIT_SYSERR_INFO(message) |
| #define | LOGIT_SYSERR_WARN(message) |
| #define | LOGIT_SYSERR_ERROR(message) |
| #define | LOGIT_SYSERR_FATAL(message) |
Stream-Based Logging | |
Macros for logging using a stream-like syntax. | |
| #define | LOGIT_STREAM(level) |
| Begin a log stream for the specified log level. | |
| #define | LOGIT_STREAM_WITH_INDEX(level, index) |
| Begin a log stream for the specified log level, targeting a specific logger. | |
| #define | LOGIT_STREAM_TRACE() |
| #define | LOGIT_STREAM_DEBUG() |
| #define | LOGIT_STREAM_INFO() |
| #define | LOGIT_STREAM_WARN() |
| #define | LOGIT_STREAM_ERROR() |
| #define | LOGIT_STREAM_FATAL() |
| #define | LOGIT_STREAM_TRACE_TO(index) |
| #define | LOGIT_STREAM_DEBUG_TO(index) |
| #define | LOGIT_STREAM_INFO_TO(index) |
| #define | LOGIT_STREAM_WARN_TO(index) |
| #define | LOGIT_STREAM_ERROR_TO(index) |
| #define | LOGIT_STREAM_FATAL_TO(index) |
Scope-Based Timing | |
RAII timers that log the duration of a scope. | |
| #define | LOGIT_DETAIL_SCOPE(level, phase) |
| #define | LOGIT_DETAIL_SCOPE_T(level, threshold_ms, phase) |
| #define | LOGIT_DETAIL_SCOPE_PRINTF(level, fmt_str, ...) |
| #define | LOGIT_DETAIL_SCOPE_PRINTF_T(level, threshold_ms, fmt_str, ...) |
| #define | LOGIT_DETAIL_SCOPE_FMT(level, fmt_str, ...) |
| #define | LOGIT_DETAIL_SCOPE_FMT_T(level, threshold_ms, fmt_str, ...) |
| #define | LOGIT_SCOPE_TRACE(phase) |
| #define | LOGIT_SCOPE_TRACE_T(threshold_ms, phase) |
| #define | LOGIT_SCOPE_DEBUG(phase) |
| #define | LOGIT_SCOPE_DEBUG_T(threshold_ms, phase) |
| #define | LOGIT_SCOPE_INFO(phase) |
| #define | LOGIT_SCOPE_INFO_T(threshold_ms, phase) |
| #define | LOGIT_SCOPE_WARN(phase) |
| #define | LOGIT_SCOPE_WARN_T(threshold_ms, phase) |
| #define | LOGIT_SCOPE_ERROR(phase) |
| #define | LOGIT_SCOPE_ERROR_T(threshold_ms, phase) |
| #define | LOGIT_SCOPE_FATAL(phase) |
| #define | LOGIT_SCOPE_FATAL_T(threshold_ms, phase) |
| #define | LOGIT_SCOPE_PRINTF_TRACE(fmt_str, ...) |
| #define | LOGIT_SCOPE_PRINTF_TRACE_T(threshold_ms, fmt_str, ...) |
| #define | LOGIT_SCOPE_PRINTF_DEBUG(fmt_str, ...) |
| #define | LOGIT_SCOPE_PRINTF_DEBUG_T(threshold_ms, fmt_str, ...) |
| #define | LOGIT_SCOPE_PRINTF_INFO(fmt_str, ...) |
| #define | LOGIT_SCOPE_PRINTF_INFO_T(threshold_ms, fmt_str, ...) |
| #define | LOGIT_SCOPE_PRINTF_WARN(fmt_str, ...) |
| #define | LOGIT_SCOPE_PRINTF_WARN_T(threshold_ms, fmt_str, ...) |
| #define | LOGIT_SCOPE_PRINTF_ERROR(fmt_str, ...) |
| #define | LOGIT_SCOPE_PRINTF_ERROR_T(threshold_ms, fmt_str, ...) |
| #define | LOGIT_SCOPE_PRINTF_FATAL(fmt_str, ...) |
| #define | LOGIT_SCOPE_PRINTF_FATAL_T(threshold_ms, fmt_str, ...) |
| #define | LOGIT_SCOPE_FMT_TRACE(fmt_str, ...) |
| #define | LOGIT_SCOPE_FMT_TRACE_T(threshold_ms, fmt_str, ...) |
| #define | LOGIT_SCOPE_FMT_DEBUG(fmt_str, ...) |
| #define | LOGIT_SCOPE_FMT_DEBUG_T(threshold_ms, fmt_str, ...) |
| #define | LOGIT_SCOPE_FMT_INFO(fmt_str, ...) |
| #define | LOGIT_SCOPE_FMT_INFO_T(threshold_ms, fmt_str, ...) |
| #define | LOGIT_SCOPE_FMT_WARN(fmt_str, ...) |
| #define | LOGIT_SCOPE_FMT_WARN_T(threshold_ms, fmt_str, ...) |
| #define | LOGIT_SCOPE_FMT_ERROR(fmt_str, ...) |
| #define | LOGIT_SCOPE_FMT_ERROR_T(threshold_ms, fmt_str, ...) |
| #define | LOGIT_SCOPE_FMT_FATAL(fmt_str, ...) |
| #define | LOGIT_SCOPE_FMT_FATAL_T(threshold_ms, fmt_str, ...) |
Conditional Logging | |
Macros for logging based on conditions. | |
| #define | LOGIT_DETAIL_CONDITIONAL_CALL(condition, expression) |
| #define | LOGIT_DETAIL_CONDITIONAL(level, condition, ...) |
| #define | LOGIT_DETAIL_CONDITIONAL_NOARGS(level, condition) |
| #define | LOGIT_DETAIL_CONDITIONAL_FORMAT(level, condition, fmt, ...) |
| #define | LOGIT_DETAIL_CONDITIONAL_PRINT(level, condition, ...) |
| #define | LOGIT_DETAIL_CONDITIONAL_PRINTF(level, condition, fmt, ...) |
| #define | LOGIT_TRACE_IF(condition, ...) |
| #define | LOGIT_TRACE0_IF(condition) |
| #define | LOGIT_0TRACE_IF(condition) |
| #define | LOGIT_0_TRACE_IF(condition) |
| #define | LOGIT_NOARGS_TRACE_IF(condition) |
| #define | LOGIT_FORMAT_TRACE_IF(condition, fmt, ...) |
| #define | LOGIT_PRINT_TRACE_IF(condition, ...) |
| #define | LOGIT_PRINTF_TRACE_IF(condition, fmt, ...) |
| #define | LOGITF_TRACE_IF(condition, fmt_str, ...) |
| #define | LOGIT_FMT_TRACE_IF(condition, fmt_str, ...) |
| #define | LOGIT_INFO_IF(condition, ...) |
| #define | LOGIT_INFO0_IF(condition) |
| #define | LOGIT_0INFO_IF(condition) |
| #define | LOGIT_0_INFO_IF(condition) |
| #define | LOGIT_NOARGS_INFO_IF(condition) |
| #define | LOGIT_FORMAT_INFO_IF(condition, fmt, ...) |
| #define | LOGIT_PRINT_INFO_IF(condition, ...) |
| #define | LOGIT_PRINTF_INFO_IF(condition, fmt, ...) |
| #define | LOGITF_INFO_IF(condition, fmt_str, ...) |
| #define | LOGIT_FMT_INFO_IF(condition, fmt_str, ...) |
| #define | LOGIT_DEBUG_IF(condition, ...) |
| #define | LOGIT_DEBUG0_IF(condition) |
| #define | LOGIT_0DEBUG_IF(condition) |
| #define | LOGIT_0_DEBUG_IF(condition) |
| #define | LOGIT_NOARGS_DEBUG_IF(condition) |
| #define | LOGIT_FORMAT_DEBUG_IF(condition, fmt, ...) |
| #define | LOGIT_PRINT_DEBUG_IF(condition, ...) |
| #define | LOGIT_PRINTF_DEBUG_IF(condition, fmt, ...) |
| #define | LOGITF_DEBUG_IF(condition, fmt_str, ...) |
| #define | LOGIT_FMT_DEBUG_IF(condition, fmt_str, ...) |
| #define | LOGIT_WARN_IF(condition, ...) |
| #define | LOGIT_WARN0_IF(condition) |
| #define | LOGIT_0WARN_IF(condition) |
| #define | LOGIT_0_WARN_IF(condition) |
| #define | LOGIT_NOARGS_WARN_IF(condition) |
| #define | LOGIT_FORMAT_WARN_IF(condition, fmt, ...) |
| #define | LOGIT_PRINT_WARN_IF(condition, ...) |
| #define | LOGIT_PRINTF_WARN_IF(condition, fmt, ...) |
| #define | LOGITF_WARN_IF(condition, fmt_str, ...) |
| #define | LOGIT_FMT_WARN_IF(condition, fmt_str, ...) |
| #define | LOGIT_ERROR_IF(condition, ...) |
| #define | LOGIT_ERROR0_IF(condition) |
| #define | LOGIT_0ERROR_IF(condition) |
| #define | LOGIT_0_ERROR_IF(condition) |
| #define | LOGIT_NOARGS_ERROR_IF(condition) |
| #define | LOGIT_FORMAT_ERROR_IF(condition, fmt, ...) |
| #define | LOGIT_PRINT_ERROR_IF(condition, ...) |
| #define | LOGIT_PRINTF_ERROR_IF(condition, fmt, ...) |
| #define | LOGITF_ERROR_IF(condition, fmt_str, ...) |
| #define | LOGIT_FMT_ERROR_IF(condition, fmt_str, ...) |
| #define | LOGIT_FATAL_IF(condition, ...) |
| #define | LOGIT_FATAL0_IF(condition) |
| #define | LOGIT_0FATAL_IF(condition) |
| #define | LOGIT_0_FATAL_IF(condition) |
| #define | LOGIT_NOARGS_FATAL_IF(condition) |
| #define | LOGIT_FORMAT_FATAL_IF(condition, fmt, ...) |
| #define | LOGIT_PRINT_FATAL_IF(condition, ...) |
| #define | LOGIT_PRINTF_FATAL_IF(condition, fmt, ...) |
| #define | LOGITF_FATAL_IF(condition, fmt_str, ...) |
| #define | LOGIT_FMT_FATAL_IF(condition, fmt_str, ...) |
| #define | LOGIT_ONCE(level, ...) |
| #define | LOGIT_EVERY_N(level, n, ...) |
| #define | LOGIT_THROTTLE(level, period_ms, ...) |
| #define | LOGIT_TRACE_ONCE(...) |
| #define | LOGIT_DEBUG_ONCE(...) |
| #define | LOGIT_INFO_ONCE(...) |
| #define | LOGIT_WARN_ONCE(...) |
| #define | LOGIT_ERROR_ONCE(...) |
| #define | LOGIT_FATAL_ONCE(...) |
| #define | LOGIT_TRACE_EVERY_N(n, ...) |
| #define | LOGIT_DEBUG_EVERY_N(n, ...) |
| #define | LOGIT_INFO_EVERY_N(n, ...) |
| #define | LOGIT_WARN_EVERY_N(n, ...) |
| #define | LOGIT_ERROR_EVERY_N(n, ...) |
| #define | LOGIT_FATAL_EVERY_N(n, ...) |
| #define | LOGIT_TRACE_THROTTLE(p, ...) |
| #define | LOGIT_DEBUG_THROTTLE(p, ...) |
| #define | LOGIT_INFO_THROTTLE(p, ...) |
| #define | LOGIT_WARN_THROTTLE(p, ...) |
| #define | LOGIT_ERROR_THROTTLE(p, ...) |
| #define | LOGIT_FATAL_THROTTLE(p, ...) |
| #define | LOGIT_TAG(k, v) |
| #define | LOGIT_TRACE_TAG(msg, ...) |
| #define | LOGIT_DEBUG_TAG(msg, ...) |
| #define | LOGIT_INFO_TAG(msg, ...) |
| #define | LOGIT_WARN_TAG(msg, ...) |
| #define | LOGIT_ERROR_TAG(msg, ...) |
| #define | LOGIT_FATAL_TAG(msg, ...) |
Logger Management | |
Macros for managing loggers. | |
| #define | LOGIT_GET_STRING_PARAM(logger_index, param) |
| Retrieves string parameter from a logger. | |
| #define | LOGIT_GET_INT_PARAM(logger_index, param) |
| Retrieves integer parameter from a logger. | |
| #define | LOGIT_GET_FLOAT_PARAM(logger_index, param) |
| Retrieves floating-point parameter from a logger. | |
| #define | LOGIT_GET_LAST_FILE_NAME(logger_index) |
| Retrieves last log file name from a specific logger. | |
| #define | LOGIT_GET_LAST_FILE_PATH(logger_index) |
| Retrieves last log file path from a specific logger. | |
| #define | LOGIT_GET_LAST_LOG_TIMESTAMP(logger_index) |
| Retrieves timestamp of last log from a specific logger. | |
| #define | LOGIT_GET_TIME_SINCE_LAST_LOG(logger_index) |
| Retrieves time since last log from a specific logger. | |
| #define | LOGIT_GET_BUFFERED_STRINGS(logger_index) |
| Retrieves buffered formatted messages from a specific logger. | |
| #define | LOGIT_GET_BUFFERED_ENTRIES(logger_index) |
| Retrieves buffered structured entries from a specific logger. | |
| #define | LOGIT_LIST_LOG_FILES(logger_index) |
| Lists persisted log files for a specific file-based logger. | |
| #define | LOGIT_READ_LOG_FILE(logger_index, path) |
| Reads one persisted log file from a specific file-based logger. | |
| #define | LOGIT_READ_LOG_FILES(logger_index, paths) |
| Reads several persisted log files from a specific file-based logger. | |
| #define | LOGIT_CLEAR_LOGGER(logger_index) |
| Clears logger-owned records for a specific logger. | |
| #define | LOGIT_CLEAR_LOGGER_EX(logger_index, options) |
| Clears logger-owned records for a specific logger with options. | |
| #define | LOGIT_CLEAR_ALL_LOGGERS() |
| Clears logger-owned records for all registered loggers. | |
| #define | LOGIT_CLEAR_ALL_LOGGERS_EX(options) |
| Clears logger-owned records for all registered loggers with options. | |
| #define | LOGIT_SET_LOGGER_ENABLED(logger_index, enabled) |
| Enables or disables a logger. | |
| #define | LOGIT_IS_LOGGER_ENABLED(logger_index) |
| Checks if a logger is enabled. | |
| #define | LOGIT_SET_SINGLE_MODE(logger_index, single_mode) |
| Sets single mode for a specific logger. | |
| #define | LOGIT_SET_TIME_OFFSET(logger_index, offset_ms) |
| Sets timestamp offset for a specific logger. | |
| #define | LOGIT_SET_LOG_LEVEL_TO(logger_index, level) |
| Sets minimal log level for a specific logger. | |
| #define | LOGIT_SET_LOG_LEVEL(level) |
| Sets minimal log level for all loggers. | |
| #define | LOGIT_GET_LOG_LEVEL(logger_index) |
| Retrieves minimal log level for a specific logger. | |
| #define | LOGIT_IS_SINGLE_MODE(logger_index) |
| Checks if a logger is in single mode. | |
Task Executor Configuration | |
Macros for configuring the TaskExecutor. | |
| #define | LOGIT_SET_MAX_QUEUE(size) |
| Sets the maximum number of queued tasks. | |
| #define | LOGIT_QUEUE_DROP_NEWEST logit::QueuePolicy::DropNewest |
| Queue policy for dropping the newest task when the queue is full. | |
| #define | LOGIT_QUEUE_DROP_OLDEST logit::QueuePolicy::DropOldest |
| Queue policy for dropping the oldest task when the queue is full. | |
| #define | LOGIT_QUEUE_DROP LOGIT_QUEUE_DROP_NEWEST |
| Backward-compatible alias for dropping the newest task. | |
| #define | LOGIT_QUEUE_BLOCK logit::QueuePolicy::Block |
| Queue policy for blocking when the queue is full. | |
| #define | LOGIT_SET_QUEUE_POLICY(mode) |
| Sets the behavior when the queue is full. | |
| #define | LOGIT_GET_DROPPED_TASKS() |
| Returns the number of tasks dropped due to overflow. | |
| #define | LOGIT_RESET_DROPPED_TASKS() |
| Resets the dropped-tasks counter to zero. | |
Provides various logging macros for different log levels and options.
Definition in file log_macros.hpp.
| #define LOGIT_0_DEBUG | ( | ) |
Definition at line 812 of file log_macros.hpp.
| #define LOGIT_0_DEBUG_IF | ( | condition | ) |
Definition at line 1173 of file log_macros.hpp.
| #define LOGIT_0_DEBUG_TO | ( | index | ) |
Definition at line 829 of file log_macros.hpp.
| #define LOGIT_0_ERROR | ( | ) |
Definition at line 918 of file log_macros.hpp.
| #define LOGIT_0_ERROR_IF | ( | condition | ) |
Definition at line 1271 of file log_macros.hpp.
| #define LOGIT_0_ERROR_TO | ( | index | ) |
Definition at line 935 of file log_macros.hpp.
| #define LOGIT_0_FATAL | ( | ) |
Definition at line 971 of file log_macros.hpp.
| #define LOGIT_0_FATAL_IF | ( | condition | ) |
Definition at line 1320 of file log_macros.hpp.
| #define LOGIT_0_FATAL_TO | ( | index | ) |
Definition at line 988 of file log_macros.hpp.
| #define LOGIT_0_INFO | ( | ) |
Definition at line 759 of file log_macros.hpp.
| #define LOGIT_0_INFO_IF | ( | condition | ) |
Definition at line 1124 of file log_macros.hpp.
| #define LOGIT_0_INFO_TO | ( | index | ) |
Definition at line 776 of file log_macros.hpp.
| #define LOGIT_0_TRACE | ( | ) |
Definition at line 706 of file log_macros.hpp.
| #define LOGIT_0_TRACE_IF | ( | condition | ) |
Definition at line 1075 of file log_macros.hpp.
| #define LOGIT_0_TRACE_TO | ( | index | ) |
Definition at line 723 of file log_macros.hpp.
| #define LOGIT_0_WARN | ( | ) |
Definition at line 865 of file log_macros.hpp.
| #define LOGIT_0_WARN_IF | ( | condition | ) |
Definition at line 1222 of file log_macros.hpp.
| #define LOGIT_0_WARN_TO | ( | index | ) |
Definition at line 882 of file log_macros.hpp.
| #define LOGIT_0DEBUG | ( | ) |
Definition at line 811 of file log_macros.hpp.
| #define LOGIT_0DEBUG_IF | ( | condition | ) |
Definition at line 1171 of file log_macros.hpp.
| #define LOGIT_0DEBUG_TO | ( | index | ) |
Definition at line 828 of file log_macros.hpp.
| #define LOGIT_0ERROR | ( | ) |
Definition at line 917 of file log_macros.hpp.
| #define LOGIT_0ERROR_IF | ( | condition | ) |
Definition at line 1269 of file log_macros.hpp.
| #define LOGIT_0ERROR_TO | ( | index | ) |
Definition at line 934 of file log_macros.hpp.
| #define LOGIT_0FATAL | ( | ) |
Definition at line 970 of file log_macros.hpp.
| #define LOGIT_0FATAL_IF | ( | condition | ) |
Definition at line 1318 of file log_macros.hpp.
| #define LOGIT_0FATAL_TO | ( | index | ) |
Definition at line 987 of file log_macros.hpp.
| #define LOGIT_0INFO | ( | ) |
Definition at line 758 of file log_macros.hpp.
| #define LOGIT_0INFO_IF | ( | condition | ) |
Definition at line 1122 of file log_macros.hpp.
| #define LOGIT_0INFO_TO | ( | index | ) |
Definition at line 775 of file log_macros.hpp.
| #define LOGIT_0TRACE | ( | ) |
Definition at line 705 of file log_macros.hpp.
| #define LOGIT_0TRACE_IF | ( | condition | ) |
Definition at line 1073 of file log_macros.hpp.
| #define LOGIT_0TRACE_TO | ( | index | ) |
Definition at line 722 of file log_macros.hpp.
| #define LOGIT_0WARN | ( | ) |
Definition at line 864 of file log_macros.hpp.
| #define LOGIT_0WARN_IF | ( | condition | ) |
Definition at line 1220 of file log_macros.hpp.
| #define LOGIT_0WARN_TO | ( | index | ) |
Definition at line 881 of file log_macros.hpp.
| #define LOGIT_ADD_CONSOLE | ( | pattern, | |
| async ) |
Macro for adding a console logger with a specific pattern and mode.
| pattern | The format pattern for log messages. |
| async | Boolean indicating whether logging should be asynchronous (true) or synchronous (false). This version uses new and std::unique_ptr for C++11 compatibility. |
Definition at line 2191 of file log_macros.hpp.
| #define LOGIT_ADD_CONSOLE_CONFIG | ( | config, | |
| pattern ) |
Add a console logger from an explicit ConsoleLogger::Config.
Definition at line 2209 of file log_macros.hpp.
| #define LOGIT_ADD_CONSOLE_CONFIG_SINGLE_MODE | ( | config, | |
| pattern ) |
Add a console logger from an explicit ConsoleLogger::Config in single_mode.
Definition at line 2216 of file log_macros.hpp.
| #define LOGIT_ADD_CONSOLE_DEDICATED | ( | pattern, | |
| queue_capacity, | |||
| queue_policy ) |
Add an async console logger backed by a dedicated executor.
Definition at line 2239 of file log_macros.hpp.
| #define LOGIT_ADD_CONSOLE_DEDICATED_SINGLE_MODE | ( | pattern, | |
| queue_capacity, | |||
| queue_policy ) |
Add an async console logger backed by a dedicated executor in single_mode.
Definition at line 2243 of file log_macros.hpp.
| #define LOGIT_ADD_CONSOLE_DEFAULT | ( | ) |
Macro for adding the default console logger.
This logger uses the default format pattern and asynchronous logging. This version uses new and std::unique_ptr for C++11 compatibility.
Definition at line 2282 of file log_macros.hpp.
| #define LOGIT_ADD_CONSOLE_DEFAULT_SINGLE_MODE | ( | ) |
Macro for adding the default console logger in single_mode.
In single_mode, the console logger can only be invoked using macros like LOGIT_TRACE_TO. This version uses new and std::unique_ptr for C++11 compatibility.
Definition at line 2292 of file log_macros.hpp.
| #define LOGIT_ADD_CONSOLE_EX | ( | pattern, | |
| async, | |||
| use_dedicated_executor, | |||
| queue_capacity, | |||
| queue_policy ) |
Add a console logger with explicit async executor settings.
Definition at line 2223 of file log_macros.hpp.
| #define LOGIT_ADD_CONSOLE_EX_SINGLE_MODE | ( | pattern, | |
| async, | |||
| use_dedicated_executor, | |||
| queue_capacity, | |||
| queue_policy ) |
Add a console logger with explicit async executor settings in single_mode.
Definition at line 2231 of file log_macros.hpp.
| #define LOGIT_ADD_CONSOLE_SINGLE_MODE | ( | pattern, | |
| async ) |
Macro for adding a console logger in single_mode with a specific pattern and mode.
| pattern | The format pattern for log messages. |
| async | Boolean indicating whether logging should be asynchronous (true) or synchronous (false). In single_mode, the console logger can only be invoked using macros like LOGIT_TRACE_TO. This version uses new and std::unique_ptr for C++11 compatibility. |
Definition at line 2202 of file log_macros.hpp.
| #define LOGIT_ADD_CONSOLE_STREAM | ( | stream, | |
| pattern, | |||
| async ) |
Add a console logger writing to a caller-provided std::ostream& (e.g.
std::cerr).
| stream | Output stream reference; lifetime is owned by the caller. |
Definition at line 2248 of file log_macros.hpp.
| #define LOGIT_ADD_CONSOLE_STREAM_EX | ( | stream, | |
| config, | |||
| pattern ) |
Add a console logger from an explicit Config writing to a caller-provided std::ostream&.
Definition at line 2264 of file log_macros.hpp.
| #define LOGIT_ADD_CONSOLE_STREAM_EX_SINGLE_MODE | ( | stream, | |
| config, | |||
| pattern ) |
Add a console logger from an explicit Config writing to a caller-provided std::ostream& in single_mode.
Definition at line 2272 of file log_macros.hpp.
| #define LOGIT_ADD_CONSOLE_STREAM_SINGLE_MODE | ( | stream, | |
| pattern, | |||
| async ) |
Add a console logger writing to a caller-provided std::ostream& in single_mode.
Definition at line 2256 of file log_macros.hpp.
| #define LOGIT_ADD_CRASH_LOGGER | ( | path, | |
| buffer_size ) |
Macro for adding a crash logger with custom configuration.
| path | Path where the crash log should be written. |
| buffer_size | Size of the in-memory buffer preserving recent messages. This version uses new and std::unique_ptr for C++11 compatibility. |
Definition at line 2523 of file log_macros.hpp.
| #define LOGIT_ADD_CRASH_LOGGER_DEFAULT | ( | ) |
Macro for adding a crash logger with default configuration.
This version uses new and std::unique_ptr for C++11 compatibility.
Definition at line 2543 of file log_macros.hpp.
| #define LOGIT_ADD_CRASH_LOGGER_SINGLE_MODE | ( | path, | |
| buffer_size ) |
Macro for adding a crash logger with custom configuration in single_mode.
In single_mode, the crash logger can only be invoked using macros like LOGIT_TRACE_TO. This version uses new and std::unique_ptr for C++11 compatibility.
Definition at line 2533 of file log_macros.hpp.
| #define LOGIT_ADD_EVENT_LOG | ( | source_wide, | |
| async ) |
Macro for adding a Windows Event Log logger with custom configuration.
| source_wide | Wide-character name of the event source. |
| async | Boolean indicating whether logging should be asynchronous (true) or synchronous (false). This version uses new and std::unique_ptr for C++11 compatibility. |
Definition at line 2704 of file log_macros.hpp.
| #define LOGIT_ADD_EVENT_LOG_CONFIG | ( | config | ) |
Add a Windows Event Log logger from an explicit EventLogLogger::Config.
Definition at line 2722 of file log_macros.hpp.
| #define LOGIT_ADD_EVENT_LOG_CONFIG_SINGLE_MODE | ( | config | ) |
Add a Windows Event Log logger from an explicit EventLogLogger::Config in single_mode.
Definition at line 2729 of file log_macros.hpp.
| #define LOGIT_ADD_EVENT_LOG_DEDICATED | ( | source_wide, | |
| queue_capacity, | |||
| queue_policy ) |
Add an async Windows Event Log logger backed by a dedicated executor.
Definition at line 2754 of file log_macros.hpp.
| #define LOGIT_ADD_EVENT_LOG_DEDICATED_SINGLE_MODE | ( | source_wide, | |
| queue_capacity, | |||
| queue_policy ) |
Add an async Windows Event Log logger backed by a dedicated executor in single_mode.
Definition at line 2758 of file log_macros.hpp.
| #define LOGIT_ADD_EVENT_LOG_DEFAULT | ( | ) |
Macro for adding a Windows Event Log logger with default configuration.
This version uses new and std::unique_ptr for C++11 compatibility.
Definition at line 2763 of file log_macros.hpp.
| #define LOGIT_ADD_EVENT_LOG_EX | ( | source_wide, | |
| async, | |||
| use_dedicated_executor, | |||
| queue_capacity, | |||
| queue_policy ) |
Add a Windows Event Log logger with explicit async executor settings.
Definition at line 2736 of file log_macros.hpp.
| #define LOGIT_ADD_EVENT_LOG_EX_SINGLE_MODE | ( | source_wide, | |
| async, | |||
| use_dedicated_executor, | |||
| queue_capacity, | |||
| queue_policy ) |
Add a Windows Event Log logger with explicit async executor settings in single_mode.
Definition at line 2745 of file log_macros.hpp.
| #define LOGIT_ADD_EVENT_LOG_SINGLE_MODE | ( | source_wide, | |
| async ) |
Macro for adding a Windows Event Log logger with custom configuration in single_mode.
| source_wide | Wide-character name of the event source. |
| async | Boolean indicating whether logging should be asynchronous (true) or synchronous (false). In single_mode, the event log logger can only be invoked using macros like LOGIT_TRACE_TO. This version uses new and std::unique_ptr for C++11 compatibility. |
Definition at line 2715 of file log_macros.hpp.
| #define LOGIT_ADD_FILE_LOGGER | ( | directory, | |
| async, | |||
| auto_delete_days, | |||
| pattern ) |
Macro for adding a file logger with specific settings.
| directory | The directory where log files will be stored. |
| async | Boolean indicating whether logging should be asynchronous (true) or synchronous (false). |
| auto_delete_days | Number of days after which old log files are deleted. |
| pattern | The format pattern for log messages. This version uses new and std::unique_ptr for C++11 compatibility. |
Definition at line 2305 of file log_macros.hpp.
| #define LOGIT_ADD_FILE_LOGGER_CONFIG | ( | config, | |
| pattern ) |
Add a file logger from an explicit FileLogger::Config.
Definition at line 2326 of file log_macros.hpp.
| #define LOGIT_ADD_FILE_LOGGER_CONFIG_SINGLE_MODE | ( | config, | |
| pattern ) |
Add a file logger from an explicit FileLogger::Config in single_mode.
Definition at line 2332 of file log_macros.hpp.
| #define LOGIT_ADD_FILE_LOGGER_DEDICATED | ( | directory, | |
| auto_delete_days, | |||
| pattern, | |||
| queue_capacity, | |||
| queue_policy ) |
Add an async file logger backed by a dedicated executor.
Definition at line 2356 of file log_macros.hpp.
| #define LOGIT_ADD_FILE_LOGGER_DEDICATED_SINGLE_MODE | ( | directory, | |
| auto_delete_days, | |||
| pattern, | |||
| queue_capacity, | |||
| queue_policy ) |
Add an async file logger backed by a dedicated executor in single_mode.
Definition at line 2360 of file log_macros.hpp.
| #define LOGIT_ADD_FILE_LOGGER_DEFAULT | ( | ) |
Macro for adding the default file logger.
This logger writes logs to the default file path and deletes logs older than the default number of days. This version uses new and std::unique_ptr for C++11 compatibility.
Definition at line 2366 of file log_macros.hpp.
| #define LOGIT_ADD_FILE_LOGGER_DEFAULT_SINGLE_MODE | ( | ) |
Macro for adding the default file logger in single_mode.
In single_mode, the file logger can only be invoked using macros like LOGIT_TRACE_TO. This version uses new and std::unique_ptr for C++11 compatibility.
Definition at line 2377 of file log_macros.hpp.
| #define LOGIT_ADD_FILE_LOGGER_DEFAULT_WITH_ROTATION | ( | ) |
Definition at line 2420 of file log_macros.hpp.
| #define LOGIT_ADD_FILE_LOGGER_EX | ( | directory, | |
| async, | |||
| auto_delete_days, | |||
| pattern, | |||
| use_dedicated_executor, | |||
| queue_capacity, | |||
| queue_policy ) |
Add a file logger with explicit async executor settings.
Definition at line 2339 of file log_macros.hpp.
| #define LOGIT_ADD_FILE_LOGGER_EX_SINGLE_MODE | ( | directory, | |
| async, | |||
| auto_delete_days, | |||
| pattern, | |||
| use_dedicated_executor, | |||
| queue_capacity, | |||
| queue_policy ) |
Add a file logger with explicit async executor settings in single_mode.
Definition at line 2347 of file log_macros.hpp.
| #define LOGIT_ADD_FILE_LOGGER_SINGLE_MODE | ( | directory, | |
| async, | |||
| auto_delete_days, | |||
| pattern ) |
Macro for adding a file logger in single_mode with specific settings.
| directory | The directory where log files will be stored. |
| async | Boolean indicating whether logging should be asynchronous (true) or synchronous (false). |
| auto_delete_days | Number of days after which old log files are deleted. |
| pattern | The format pattern for log messages. In single_mode, the file logger can only be invoked using macros like LOGIT_TRACE_TO. This version uses new and std::unique_ptr for C++11 compatibility. |
Definition at line 2318 of file log_macros.hpp.
| #define LOGIT_ADD_FILE_LOGGER_WITH_ROTATION | ( | dir, | |
| async, | |||
| days, | |||
| pattern, | |||
| max_bytes, | |||
| max_files ) |
Definition at line 2386 of file log_macros.hpp.
| #define LOGIT_ADD_FILE_LOGGER_WITH_ROTATION_DEDICATED | ( | dir, | |
| days, | |||
| pattern, | |||
| max_bytes, | |||
| max_files, | |||
| queue_capacity, | |||
| queue_policy ) |
Definition at line 2414 of file log_macros.hpp.
| #define LOGIT_ADD_FILE_LOGGER_WITH_ROTATION_DEDICATED_SINGLE_MODE | ( | dir, | |
| days, | |||
| pattern, | |||
| max_bytes, | |||
| max_files, | |||
| queue_capacity, | |||
| queue_policy ) |
Definition at line 2417 of file log_macros.hpp.
| #define LOGIT_ADD_FILE_LOGGER_WITH_ROTATION_EX | ( | dir, | |
| async, | |||
| days, | |||
| pattern, | |||
| max_bytes, | |||
| max_files, | |||
| use_dedicated_executor, | |||
| queue_capacity, | |||
| queue_policy ) |
Definition at line 2399 of file log_macros.hpp.
| #define LOGIT_ADD_FILE_LOGGER_WITH_ROTATION_EX_SINGLE_MODE | ( | dir, | |
| async, | |||
| days, | |||
| pattern, | |||
| max_bytes, | |||
| max_files, | |||
| use_dedicated_executor, | |||
| queue_capacity, | |||
| queue_policy ) |
Definition at line 2406 of file log_macros.hpp.
| #define LOGIT_ADD_FILE_LOGGER_WITH_ROTATION_SINGLE_MODE | ( | dir, | |
| async, | |||
| days, | |||
| pattern, | |||
| max_bytes, | |||
| max_files ) |
Definition at line 2392 of file log_macros.hpp.
| #define LOGIT_ADD_LOG_CALLBACK | ( | logger_index, | |
| callback ) |
Registers a callback to receive newly written log records.
| logger_index | Index of logger. |
| callback | Function invoked with an owning LogRecordSnapshot after each commit. |
Definition at line 3051 of file log_macros.hpp.
| #define LOGIT_ADD_LOGGER | ( | logger_type, | |
| logger_args, | |||
| formatter_type, | |||
| formatter_args ) |
Macro for adding a logger with a specific formatter.
| logger_type | The type of logger (e.g., ConsoleLogger). |
| logger_args | Arguments for the logger constructor, enclosed in parentheses. |
| formatter_type | The type of formatter (e.g., SimpleLogFormatter). |
| formatter_args | Arguments for the formatter constructor, enclosed in parentheses. This version uses new and std::unique_ptr for C++11 compatibility. |
Definition at line 2168 of file log_macros.hpp.
| #define LOGIT_ADD_LOGGER_SINGLE_MODE | ( | logger_type, | |
| logger_args, | |||
| formatter_type, | |||
| formatter_args ) |
Macro for adding a logger with a specific formatter in single_mode.
| logger_type | The type of logger (e.g., ConsoleLogger). |
| logger_args | Arguments for the logger constructor, enclosed in parentheses. |
| formatter_type | The type of formatter (e.g., SimpleLogFormatter). |
| formatter_args | Arguments for the formatter constructor, enclosed in parentheses. In single_mode, loggers can only be invoked explicitly using macros like LOGIT_TRACE_TO. This version uses new and std::unique_ptr for C++11 compatibility. |
Definition at line 2181 of file log_macros.hpp.
| #define LOGIT_ADD_MEMORY_LOGGER | ( | max_records, | |
| max_bytes, | |||
| max_age_ms ) |
Macro for adding an in-memory logger with explicit limits.
| max_records | Maximum number of buffered entries (0 = unlimited). |
| max_bytes | Maximum total buffered message bytes (0 = unlimited). |
| max_age_ms | Maximum age of buffered entries in milliseconds (0 = unlimited). |
Definition at line 2552 of file log_macros.hpp.
| #define LOGIT_ADD_MEMORY_LOGGER_DEFAULT | ( | ) |
Macro for adding an in-memory logger with default retention settings.
Definition at line 2567 of file log_macros.hpp.
| #define LOGIT_ADD_MEMORY_LOGGER_DEFAULT_SINGLE_MODE | ( | ) |
Macro for adding an in-memory logger in single_mode with default retention settings.
Definition at line 2571 of file log_macros.hpp.
| #define LOGIT_ADD_MEMORY_LOGGER_SINGLE_MODE | ( | max_records, | |
| max_bytes, | |||
| max_age_ms ) |
Macro for adding an in-memory logger in single_mode with explicit limits.
Definition at line 2559 of file log_macros.hpp.
| #define LOGIT_ADD_SYSLOG | ( | ident, | |
| facility, | |||
| async ) |
Macro for adding a syslog logger with custom configuration.
| ident | Syslog identifier used to tag the log entries. |
| facility | Syslog facility value (e.g., LOG_USER). |
| async | Boolean indicating whether logging should be asynchronous (true) or synchronous (false). This version uses new and std::unique_ptr for C++11 compatibility. |
Definition at line 2638 of file log_macros.hpp.
| #define LOGIT_ADD_SYSLOG_CONFIG | ( | config | ) |
Add a syslog logger from an explicit SyslogLogger::Config.
Definition at line 2657 of file log_macros.hpp.
| #define LOGIT_ADD_SYSLOG_CONFIG_SINGLE_MODE | ( | config | ) |
Add a syslog logger from an explicit SyslogLogger::Config in single_mode.
Definition at line 2664 of file log_macros.hpp.
| #define LOGIT_ADD_SYSLOG_DEDICATED | ( | ident, | |
| facility, | |||
| queue_capacity, | |||
| queue_policy ) |
Add an async syslog logger backed by a dedicated executor.
Definition at line 2689 of file log_macros.hpp.
| #define LOGIT_ADD_SYSLOG_DEDICATED_SINGLE_MODE | ( | ident, | |
| facility, | |||
| queue_capacity, | |||
| queue_policy ) |
Add an async syslog logger backed by a dedicated executor in single_mode.
Definition at line 2693 of file log_macros.hpp.
| #define LOGIT_ADD_SYSLOG_DEFAULT | ( | ) |
Macro for adding a syslog logger with default configuration.
This version uses new and std::unique_ptr for C++11 compatibility.
Definition at line 2698 of file log_macros.hpp.
| #define LOGIT_ADD_SYSLOG_EX | ( | ident, | |
| facility, | |||
| async, | |||
| use_dedicated_executor, | |||
| queue_capacity, | |||
| queue_policy ) |
Add a syslog logger with explicit async executor settings.
Definition at line 2671 of file log_macros.hpp.
| #define LOGIT_ADD_SYSLOG_EX_SINGLE_MODE | ( | ident, | |
| facility, | |||
| async, | |||
| use_dedicated_executor, | |||
| queue_capacity, | |||
| queue_policy ) |
Add a syslog logger with explicit async executor settings in single_mode.
Definition at line 2680 of file log_macros.hpp.
| #define LOGIT_ADD_SYSLOG_SINGLE_MODE | ( | ident, | |
| facility, | |||
| async ) |
Macro for adding a syslog logger with custom configuration in single_mode.
| ident | Syslog identifier used to tag the log entries. |
| facility | Syslog facility value (e.g., LOG_USER). |
| async | Boolean indicating whether logging should be asynchronous (true) or synchronous (false). In single_mode, the syslog logger can only be invoked using macros like LOGIT_TRACE_TO. This version uses new and std::unique_ptr for C++11 compatibility. |
Definition at line 2650 of file log_macros.hpp.
| #define LOGIT_ADD_UNIQUE_FILE_LOGGER | ( | directory, | |
| async, | |||
| auto_delete_days, | |||
| hash_length, | |||
| pattern ) |
Macro for adding a unique file logger with custom parameters.
| directory | The directory where log files will be stored. |
| async | Boolean indicating whether logging should be asynchronous (true) or synchronous (false). |
| auto_delete_days | Number of days after which old log files are deleted. |
| hash_length | The length of the hash to be appended to the log file name. |
| pattern | The format pattern for log messages. This version uses new and std::unique_ptr for C++11 compatibility. |
Definition at line 2434 of file log_macros.hpp.
| #define LOGIT_ADD_UNIQUE_FILE_LOGGER_CONFIG | ( | config, | |
| pattern ) |
Add a unique file logger from an explicit UniqueFileLogger::Config.
Definition at line 2456 of file log_macros.hpp.
| #define LOGIT_ADD_UNIQUE_FILE_LOGGER_CONFIG_SINGLE_MODE | ( | config, | |
| pattern ) |
Add a unique file logger from an explicit UniqueFileLogger::Config in single_mode.
Definition at line 2462 of file log_macros.hpp.
| #define LOGIT_ADD_UNIQUE_FILE_LOGGER_DEDICATED | ( | directory, | |
| auto_delete_days, | |||
| hash_length, | |||
| pattern, | |||
| queue_capacity, | |||
| queue_policy ) |
Add an async unique file logger backed by a dedicated executor.
Definition at line 2486 of file log_macros.hpp.
| #define LOGIT_ADD_UNIQUE_FILE_LOGGER_DEDICATED_SINGLE_MODE | ( | directory, | |
| auto_delete_days, | |||
| hash_length, | |||
| pattern, | |||
| queue_capacity, | |||
| queue_policy ) |
Add an async unique file logger backed by a dedicated executor in single_mode.
Definition at line 2490 of file log_macros.hpp.
| #define LOGIT_ADD_UNIQUE_FILE_LOGGER_DEFAULT | ( | ) |
Macro for adding the default unique file logger.
This macro adds a UniqueFileLogger with default settings, which writes each log message to a new file. Log files are stored in the directory specified by LOGIT_UNIQUE_FILE_LOGGER_PATH, using asynchronous mode and auto-deleting logs older than the number of days specified by LOGIT_FILE_LOGGER_AUTO_DELETE_DAYS. This version uses new and std::unique_ptr for C++11 compatibility.
Definition at line 2498 of file log_macros.hpp.
| #define LOGIT_ADD_UNIQUE_FILE_LOGGER_DEFAULT_SINGLE_MODE | ( | ) |
Macro for adding the default unique file logger in single_mode.
This macro adds a UniqueFileLogger with default settings, which writes each log message to a new file. Log files are stored in the directory specified by LOGIT_UNIQUE_FILE_LOGGER_PATH, using asynchronous mode and auto-deleting logs older than the number of days specified by LOGIT_FILE_LOGGER_AUTO_DELETE_DAYS. In single_mode, the unique file logger can only be invoked using macros like LOGIT_TRACE_TO. This version uses new and std::unique_ptr for C++11 compatibility.
Definition at line 2511 of file log_macros.hpp.
| #define LOGIT_ADD_UNIQUE_FILE_LOGGER_EX | ( | directory, | |
| async, | |||
| auto_delete_days, | |||
| hash_length, | |||
| pattern, | |||
| use_dedicated_executor, | |||
| queue_capacity, | |||
| queue_policy ) |
Add a unique file logger with explicit async executor settings.
Definition at line 2469 of file log_macros.hpp.
| #define LOGIT_ADD_UNIQUE_FILE_LOGGER_EX_SINGLE_MODE | ( | directory, | |
| async, | |||
| auto_delete_days, | |||
| hash_length, | |||
| pattern, | |||
| use_dedicated_executor, | |||
| queue_capacity, | |||
| queue_policy ) |
Add a unique file logger with explicit async executor settings in single_mode.
Definition at line 2477 of file log_macros.hpp.
| #define LOGIT_ADD_UNIQUE_FILE_LOGGER_SINGLE_MODE | ( | directory, | |
| async, | |||
| auto_delete_days, | |||
| hash_length, | |||
| pattern ) |
Macro for adding a unique file logger in single_mode with custom parameters.
| directory | The directory where log files will be stored. |
| async | Boolean indicating whether logging should be asynchronous (true) or synchronous (false). |
| auto_delete_days | Number of days after which old log files are deleted. |
| hash_length | The length of the hash to be appended to the log file name. |
| pattern | The format pattern for log messages. In single_mode, the unique file logger can only be invoked using macros like LOGIT_TRACE_TO. This version uses new and std::unique_ptr for C++11 compatibility. |
Definition at line 2448 of file log_macros.hpp.
| #define LOGIT_ADD_WINDOWS_DEBUG | ( | async | ) |
Macro for adding a Windows debug logger.
| async | Boolean indicating whether logging should be asynchronous (true) or synchronous (false). This version uses new and std::unique_ptr for C++11 compatibility. |
Definition at line 2577 of file log_macros.hpp.
| #define LOGIT_ADD_WINDOWS_DEBUG_CONFIG | ( | config | ) |
Add a Windows debug logger from an explicit WindowsDebugLogger::Config.
Definition at line 2594 of file log_macros.hpp.
| #define LOGIT_ADD_WINDOWS_DEBUG_CONFIG_SINGLE_MODE | ( | config | ) |
Add a Windows debug logger from an explicit WindowsDebugLogger::Config in single_mode.
Definition at line 2600 of file log_macros.hpp.
| #define LOGIT_ADD_WINDOWS_DEBUG_DEDICATED | ( | queue_capacity, | |
| queue_policy ) |
Add an async Windows debug logger backed by a dedicated executor.
Definition at line 2622 of file log_macros.hpp.
| #define LOGIT_ADD_WINDOWS_DEBUG_DEDICATED_SINGLE_MODE | ( | queue_capacity, | |
| queue_policy ) |
Add an async Windows debug logger backed by a dedicated executor in single_mode.
Definition at line 2626 of file log_macros.hpp.
| #define LOGIT_ADD_WINDOWS_DEBUG_DEFAULT | ( | ) |
Macro for adding a Windows debug logger with default settings.
Definition at line 2630 of file log_macros.hpp.
| #define LOGIT_ADD_WINDOWS_DEBUG_EX | ( | async, | |
| use_dedicated_executor, | |||
| queue_capacity, | |||
| queue_policy ) |
Add a Windows debug logger with explicit async executor settings.
Definition at line 2607 of file log_macros.hpp.
| #define LOGIT_ADD_WINDOWS_DEBUG_EX_SINGLE_MODE | ( | async, | |
| use_dedicated_executor, | |||
| queue_capacity, | |||
| queue_policy ) |
Add a Windows debug logger with explicit async executor settings in single_mode.
Definition at line 2614 of file log_macros.hpp.
| #define LOGIT_ADD_WINDOWS_DEBUG_SINGLE_MODE | ( | async | ) |
Macro for adding a Windows debug logger in single_mode.
| async | Boolean indicating whether logging should be asynchronous (true) or synchronous (false). This version uses new and std::unique_ptr for C++11 compatibility. |
Definition at line 2586 of file log_macros.hpp.
| #define LOGIT_CLEAR_ALL_LOGGERS | ( | ) |
Clears logger-owned records for all registered loggers.
Definition at line 2863 of file log_macros.hpp.
| #define LOGIT_CLEAR_ALL_LOGGERS_EX | ( | options | ) |
Clears logger-owned records for all registered loggers with options.
| options | LogClearOptions value. |
Definition at line 2869 of file log_macros.hpp.
| #define LOGIT_CLEAR_LOGGER | ( | logger_index | ) |
Clears logger-owned records for a specific logger.
| logger_index | Index of logger. |
Definition at line 2851 of file log_macros.hpp.
| #define LOGIT_CLEAR_LOGGER_EX | ( | logger_index, | |
| options ) |
Clears logger-owned records for a specific logger with options.
| logger_index | Index of logger. |
| options | LogClearOptions value. |
Definition at line 2858 of file log_macros.hpp.
| #define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOG_MACROS_HPP_INCLUDED |
Definition at line 3 of file log_macros.hpp.
| #define LOGIT_DEBUG | ( | ... | ) |
Definition at line 809 of file log_macros.hpp.
| #define LOGIT_DEBUG0 | ( | ) |
Definition at line 810 of file log_macros.hpp.
| #define LOGIT_DEBUG0_IF | ( | condition | ) |
Definition at line 1169 of file log_macros.hpp.
| #define LOGIT_DEBUG0_TO | ( | index | ) |
Definition at line 827 of file log_macros.hpp.
| #define LOGIT_DEBUG_EVERY_N | ( | n, | |
| ... ) |
Definition at line 1396 of file log_macros.hpp.
| #define LOGIT_DEBUG_IF | ( | condition, | |
| ... ) |
Definition at line 1167 of file log_macros.hpp.
| #define LOGIT_DEBUG_ONCE | ( | ... | ) |
Definition at line 1389 of file log_macros.hpp.
| #define LOGIT_DEBUG_TAG | ( | msg, | |
| ... ) |
Definition at line 1412 of file log_macros.hpp.
| #define LOGIT_DEBUG_THROTTLE | ( | p, | |
| ... ) |
Definition at line 1403 of file log_macros.hpp.
| #define LOGIT_DEBUG_TO | ( | index, | |
| ... ) |
Definition at line 826 of file log_macros.hpp.
| #define LOGIT_DETAIL_CONDITIONAL | ( | level, | |
| condition, | |||
| ... ) |
Definition at line 1032 of file log_macros.hpp.
| #define LOGIT_DETAIL_CONDITIONAL_CALL | ( | condition, | |
| expression ) |
Definition at line 1026 of file log_macros.hpp.
| #define LOGIT_DETAIL_CONDITIONAL_FORMAT | ( | level, | |
| condition, | |||
| fmt, | |||
| ... ) |
Definition at line 1040 of file log_macros.hpp.
| #define LOGIT_DETAIL_CONDITIONAL_NOARGS | ( | level, | |
| condition ) |
Definition at line 1037 of file log_macros.hpp.
| #define LOGIT_DETAIL_CONDITIONAL_PRINT | ( | level, | |
| condition, | |||
| ... ) |
Definition at line 1045 of file log_macros.hpp.
| #define LOGIT_DETAIL_CONDITIONAL_PRINTF | ( | level, | |
| condition, | |||
| fmt, | |||
| ... ) |
Definition at line 1050 of file log_macros.hpp.
| #define LOGIT_DETAIL_SCOPE | ( | level, | |
| phase ) |
Definition at line 258 of file log_macros.hpp.
| #define LOGIT_DETAIL_SCOPE_FMT | ( | level, | |
| fmt_str, | |||
| ... ) |
Definition at line 275 of file log_macros.hpp.
| #define LOGIT_DETAIL_SCOPE_FMT_T | ( | level, | |
| threshold_ms, | |||
| fmt_str, | |||
| ... ) |
Definition at line 276 of file log_macros.hpp.
| #define LOGIT_DETAIL_SCOPE_PRINTF | ( | level, | |
| fmt_str, | |||
| ... ) |
Definition at line 264 of file log_macros.hpp.
| #define LOGIT_DETAIL_SCOPE_PRINTF_T | ( | level, | |
| threshold_ms, | |||
| fmt_str, | |||
| ... ) |
Definition at line 266 of file log_macros.hpp.
| #define LOGIT_DETAIL_SCOPE_T | ( | level, | |
| threshold_ms, | |||
| phase ) |
Definition at line 261 of file log_macros.hpp.
| #define LOGIT_ERROR | ( | ... | ) |
Definition at line 915 of file log_macros.hpp.
| #define LOGIT_ERROR0 | ( | ) |
Definition at line 916 of file log_macros.hpp.
| #define LOGIT_ERROR0_IF | ( | condition | ) |
Definition at line 1267 of file log_macros.hpp.
| #define LOGIT_ERROR0_TO | ( | index | ) |
Definition at line 933 of file log_macros.hpp.
| #define LOGIT_ERROR_EVERY_N | ( | n, | |
| ... ) |
Definition at line 1399 of file log_macros.hpp.
| #define LOGIT_ERROR_IF | ( | condition, | |
| ... ) |
Definition at line 1265 of file log_macros.hpp.
| #define LOGIT_ERROR_ONCE | ( | ... | ) |
Definition at line 1392 of file log_macros.hpp.
| #define LOGIT_ERROR_TAG | ( | msg, | |
| ... ) |
Definition at line 1415 of file log_macros.hpp.
| #define LOGIT_ERROR_THROTTLE | ( | p, | |
| ... ) |
Definition at line 1406 of file log_macros.hpp.
| #define LOGIT_ERROR_TO | ( | index, | |
| ... ) |
Definition at line 932 of file log_macros.hpp.
| #define LOGIT_EVERY_N | ( | level, | |
| n, | |||
| ... ) |
Definition at line 1370 of file log_macros.hpp.
| #define LOGIT_FATAL | ( | ... | ) |
Definition at line 968 of file log_macros.hpp.
| #define LOGIT_FATAL0 | ( | ) |
Definition at line 969 of file log_macros.hpp.
| #define LOGIT_FATAL0_IF | ( | condition | ) |
Definition at line 1316 of file log_macros.hpp.
| #define LOGIT_FATAL0_TO | ( | index | ) |
Definition at line 986 of file log_macros.hpp.
| #define LOGIT_FATAL_EVERY_N | ( | n, | |
| ... ) |
Definition at line 1400 of file log_macros.hpp.
| #define LOGIT_FATAL_IF | ( | condition, | |
| ... ) |
Definition at line 1314 of file log_macros.hpp.
| #define LOGIT_FATAL_ONCE | ( | ... | ) |
Definition at line 1393 of file log_macros.hpp.
| #define LOGIT_FATAL_TAG | ( | msg, | |
| ... ) |
Definition at line 1416 of file log_macros.hpp.
| #define LOGIT_FATAL_THROTTLE | ( | p, | |
| ... ) |
Definition at line 1407 of file log_macros.hpp.
| #define LOGIT_FATAL_TO | ( | index, | |
| ... ) |
Definition at line 985 of file log_macros.hpp.
| #define LOGIT_FMT_DEBUG | ( | fmt_str, | |
| ... ) |
Definition at line 822 of file log_macros.hpp.
| #define LOGIT_FMT_DEBUG_IF | ( | condition, | |
| fmt_str, | |||
| ... ) |
Definition at line 1195 of file log_macros.hpp.
| #define LOGIT_FMT_DEBUG_TO | ( | index, | |
| fmt_str, | |||
| ... ) |
Definition at line 839 of file log_macros.hpp.
| #define LOGIT_FMT_ERROR | ( | fmt_str, | |
| ... ) |
Definition at line 928 of file log_macros.hpp.
| #define LOGIT_FMT_ERROR_IF | ( | condition, | |
| fmt_str, | |||
| ... ) |
Definition at line 1293 of file log_macros.hpp.
| #define LOGIT_FMT_ERROR_TO | ( | index, | |
| fmt_str, | |||
| ... ) |
Definition at line 945 of file log_macros.hpp.
| #define LOGIT_FMT_FATAL | ( | fmt_str, | |
| ... ) |
Definition at line 981 of file log_macros.hpp.
| #define LOGIT_FMT_FATAL_IF | ( | condition, | |
| fmt_str, | |||
| ... ) |
Definition at line 1342 of file log_macros.hpp.
| #define LOGIT_FMT_FATAL_TO | ( | index, | |
| fmt_str, | |||
| ... ) |
Definition at line 998 of file log_macros.hpp.
| #define LOGIT_FMT_INFO | ( | fmt_str, | |
| ... ) |
Definition at line 769 of file log_macros.hpp.
| #define LOGIT_FMT_INFO_IF | ( | condition, | |
| fmt_str, | |||
| ... ) |
Definition at line 1146 of file log_macros.hpp.
| #define LOGIT_FMT_INFO_TO | ( | index, | |
| fmt_str, | |||
| ... ) |
Definition at line 786 of file log_macros.hpp.
| #define LOGIT_FMT_TRACE | ( | fmt_str, | |
| ... ) |
Definition at line 716 of file log_macros.hpp.
| #define LOGIT_FMT_TRACE_IF | ( | condition, | |
| fmt_str, | |||
| ... ) |
Definition at line 1097 of file log_macros.hpp.
| #define LOGIT_FMT_TRACE_TO | ( | index, | |
| fmt_str, | |||
| ... ) |
Definition at line 733 of file log_macros.hpp.
| #define LOGIT_FMT_WARN | ( | fmt_str, | |
| ... ) |
Definition at line 875 of file log_macros.hpp.
| #define LOGIT_FMT_WARN_IF | ( | condition, | |
| fmt_str, | |||
| ... ) |
Definition at line 1244 of file log_macros.hpp.
| #define LOGIT_FMT_WARN_TO | ( | index, | |
| fmt_str, | |||
| ... ) |
Definition at line 892 of file log_macros.hpp.
| #define LOGIT_FORMAT_DEBUG | ( | fmt, | |
| ... ) |
Definition at line 814 of file log_macros.hpp.
| #define LOGIT_FORMAT_DEBUG_IF | ( | condition, | |
| fmt, | |||
| ... ) |
Definition at line 1177 of file log_macros.hpp.
| #define LOGIT_FORMAT_DEBUG_TO | ( | index, | |
| fmt, | |||
| ... ) |
Definition at line 831 of file log_macros.hpp.
| #define LOGIT_FORMAT_ERROR | ( | fmt, | |
| ... ) |
Definition at line 920 of file log_macros.hpp.
| #define LOGIT_FORMAT_ERROR_IF | ( | condition, | |
| fmt, | |||
| ... ) |
Definition at line 1275 of file log_macros.hpp.
| #define LOGIT_FORMAT_ERROR_TO | ( | index, | |
| fmt, | |||
| ... ) |
Definition at line 937 of file log_macros.hpp.
| #define LOGIT_FORMAT_FATAL | ( | fmt, | |
| ... ) |
Definition at line 973 of file log_macros.hpp.
| #define LOGIT_FORMAT_FATAL_IF | ( | condition, | |
| fmt, | |||
| ... ) |
Definition at line 1324 of file log_macros.hpp.
| #define LOGIT_FORMAT_FATAL_TO | ( | index, | |
| fmt, | |||
| ... ) |
Definition at line 990 of file log_macros.hpp.
| #define LOGIT_FORMAT_INFO | ( | fmt, | |
| ... ) |
Definition at line 761 of file log_macros.hpp.
| #define LOGIT_FORMAT_INFO_IF | ( | condition, | |
| fmt, | |||
| ... ) |
Definition at line 1128 of file log_macros.hpp.
| #define LOGIT_FORMAT_INFO_TO | ( | index, | |
| fmt, | |||
| ... ) |
Definition at line 778 of file log_macros.hpp.
| #define LOGIT_FORMAT_TRACE | ( | fmt, | |
| ... ) |
Definition at line 708 of file log_macros.hpp.
| #define LOGIT_FORMAT_TRACE_IF | ( | condition, | |
| fmt, | |||
| ... ) |
Definition at line 1079 of file log_macros.hpp.
| #define LOGIT_FORMAT_TRACE_TO | ( | index, | |
| fmt, | |||
| ... ) |
Definition at line 725 of file log_macros.hpp.
| #define LOGIT_FORMAT_WARN | ( | fmt, | |
| ... ) |
Definition at line 867 of file log_macros.hpp.
| #define LOGIT_FORMAT_WARN_IF | ( | condition, | |
| fmt, | |||
| ... ) |
Definition at line 1226 of file log_macros.hpp.
| #define LOGIT_FORMAT_WARN_TO | ( | index, | |
| fmt, | |||
| ... ) |
Definition at line 884 of file log_macros.hpp.
| #define LOGIT_GET_BUFFERED_ENTRIES | ( | logger_index | ) |
Retrieves buffered structured entries from a specific logger.
| logger_index | Index of logger. |
Definition at line 2825 of file log_macros.hpp.
| #define LOGIT_GET_BUFFERED_STRINGS | ( | logger_index | ) |
Retrieves buffered formatted messages from a specific logger.
| logger_index | Index of logger. |
Definition at line 2819 of file log_macros.hpp.
| #define LOGIT_GET_DROPPED_TASKS | ( | ) |
Returns the number of tasks dropped due to overflow.
Definition at line 2948 of file log_macros.hpp.
| #define LOGIT_GET_FLOAT_PARAM | ( | logger_index, | |
| param ) |
Retrieves floating-point parameter from a logger.
| logger_index | Index of logger. |
| param | Parameter to retrieve. |
Definition at line 2789 of file log_macros.hpp.
| #define LOGIT_GET_INT_PARAM | ( | logger_index, | |
| param ) |
Retrieves integer parameter from a logger.
| logger_index | Index of logger. |
| param | Parameter to retrieve. |
Definition at line 2782 of file log_macros.hpp.
| #define LOGIT_GET_LAST_FILE_NAME | ( | logger_index | ) |
Retrieves last log file name from a specific logger.
| logger_index | Index of logger. |
Definition at line 2795 of file log_macros.hpp.
| #define LOGIT_GET_LAST_FILE_PATH | ( | logger_index | ) |
Retrieves last log file path from a specific logger.
| logger_index | Index of logger. |
Definition at line 2801 of file log_macros.hpp.
| #define LOGIT_GET_LAST_LOG_TIMESTAMP | ( | logger_index | ) |
Retrieves timestamp of last log from a specific logger.
| logger_index | Index of logger. |
Definition at line 2807 of file log_macros.hpp.
| #define LOGIT_GET_LOG_LEVEL | ( | logger_index | ) |
Retrieves minimal log level for a specific logger.
| logger_index | Index of logger. |
Definition at line 2910 of file log_macros.hpp.
| #define LOGIT_GET_LOG_READER | ( | logger_index | ) |
Retrieves a read-only log-reader interface from a logger by index.
| logger_index | Index of logger. |
Definition at line 2982 of file log_macros.hpp.
| #define LOGIT_GET_LOG_SUBSCRIBER | ( | logger_index | ) |
Retrieves a live-subscription interface from a logger by index.
| logger_index | Index of logger. |
Definition at line 3038 of file log_macros.hpp.
| #define LOGIT_GET_LOGGER_AS | ( | logger_index, | |
| logger_type ) |
Retrieves a typed backend pointer from a logger by index.
| logger_index | Index of logger. |
| logger_type | Concrete logger type (e.g., logit::MdbxLogger). |
Definition at line 2969 of file log_macros.hpp.
| #define LOGIT_GET_STRING_PARAM | ( | logger_index, | |
| param ) |
Retrieves string parameter from a logger.
| logger_index | Index of logger. |
| param | Parameter to retrieve. |
Definition at line 2775 of file log_macros.hpp.
| #define LOGIT_GET_TIME_SINCE_LAST_LOG | ( | logger_index | ) |
Retrieves time since last log from a specific logger.
| logger_index | Index of logger. |
Definition at line 2813 of file log_macros.hpp.
| #define LOGIT_INFO | ( | ... | ) |
Definition at line 756 of file log_macros.hpp.
| #define LOGIT_INFO0 | ( | ) |
Definition at line 757 of file log_macros.hpp.
| #define LOGIT_INFO0_IF | ( | condition | ) |
Definition at line 1120 of file log_macros.hpp.
| #define LOGIT_INFO0_TO | ( | index | ) |
Definition at line 774 of file log_macros.hpp.
| #define LOGIT_INFO_EVERY_N | ( | n, | |
| ... ) |
Definition at line 1397 of file log_macros.hpp.
| #define LOGIT_INFO_IF | ( | condition, | |
| ... ) |
Definition at line 1118 of file log_macros.hpp.
| #define LOGIT_INFO_ONCE | ( | ... | ) |
Definition at line 1390 of file log_macros.hpp.
| #define LOGIT_INFO_TAG | ( | msg, | |
| ... ) |
Definition at line 1413 of file log_macros.hpp.
| #define LOGIT_INFO_THROTTLE | ( | p, | |
| ... ) |
Definition at line 1404 of file log_macros.hpp.
| #define LOGIT_INFO_TO | ( | index, | |
| ... ) |
Definition at line 773 of file log_macros.hpp.
| #define LOGIT_IS_LOGGER_ENABLED | ( | logger_index | ) |
Checks if a logger is enabled.
| logger_index | Index of logger. |
Definition at line 2881 of file log_macros.hpp.
| #define LOGIT_IS_SINGLE_MODE | ( | logger_index | ) |
Checks if a logger is in single mode.
| logger_index | Index of logger. |
Definition at line 2916 of file log_macros.hpp.
| #define LOGIT_LIST_LOG_FILES | ( | logger_index | ) |
Lists persisted log files for a specific file-based logger.
| logger_index | Index of logger. |
Definition at line 2831 of file log_macros.hpp.
| #define LOGIT_LOG_AND_RETURN | ( | level, | |
| format, | |||
| arg_names, | |||
| ... ) |
Logs a message with arguments.
| level | The log level. |
| format | The log message format. |
| arg_names | The names of the arguments. |
| ... | The arguments to log. |
Definition at line 521 of file log_macros.hpp.
| #define LOGIT_LOG_AND_RETURN_FMT | ( | level, | |
| format, | |||
| arg_names, | |||
| ... ) |
Definition at line 617 of file log_macros.hpp.
| #define LOGIT_LOG_AND_RETURN_FMT_WITH_INDEX | ( | level, | |
| index, | |||
| format, | |||
| arg_names, | |||
| ... ) |
Definition at line 636 of file log_macros.hpp.
| #define LOGIT_LOG_AND_RETURN_NOARGS | ( | level, | |
| format ) |
Logs a message without arguments.
| level | The log level. |
| format | The log message format. |
Definition at line 471 of file log_macros.hpp.
| #define LOGIT_LOG_AND_RETURN_NOARGS_WITH_INDEX | ( | level, | |
| index, | |||
| format ) |
Logs a message to a specific logger without arguments.
| level | The log level. |
| index | The index of the logger to log to. |
| format | The log message format. |
Definition at line 494 of file log_macros.hpp.
| #define LOGIT_LOG_AND_RETURN_PRINT | ( | level, | |
| arg_names, | |||
| ... ) |
Logs a message with arguments, but prints them without using a format string.
| level | The log level. |
| arg_names | The names of the arguments. |
| ... | The arguments to log. |
This macro logs the raw arguments without applying any formatting to them.
Definition at line 545 of file log_macros.hpp.
| #define LOGIT_LOG_AND_RETURN_PRINT_WITH_INDEX | ( | level, | |
| index, | |||
| arg_names, | |||
| ... ) |
Logs a message with arguments to a specific logger, but prints them without using a format string.
| level | The log level. |
| index | The index of the logger to log to. |
| arg_names | The names of the arguments. |
| ... | The arguments to log. |
This macro logs the raw arguments without applying any formatting to them to a specific logger.
Definition at line 595 of file log_macros.hpp.
| #define LOGIT_LOG_AND_RETURN_WITH_INDEX | ( | level, | |
| index, | |||
| format, | |||
| arg_names, | |||
| ... ) |
Logs a message with arguments to a specific logger.
| level | The log level. |
| index | The index of the logger to log to. |
| format | The log message format. |
| arg_names | The names of the arguments. |
| ... | The arguments to log. |
Definition at line 570 of file log_macros.hpp.
| #define LOGIT_NOARGS_DEBUG | ( | ) |
Definition at line 813 of file log_macros.hpp.
| #define LOGIT_NOARGS_DEBUG_IF | ( | condition | ) |
Definition at line 1175 of file log_macros.hpp.
| #define LOGIT_NOARGS_DEBUG_TO | ( | index | ) |
Definition at line 830 of file log_macros.hpp.
| #define LOGIT_NOARGS_ERROR | ( | ) |
Definition at line 919 of file log_macros.hpp.
| #define LOGIT_NOARGS_ERROR_IF | ( | condition | ) |
Definition at line 1273 of file log_macros.hpp.
| #define LOGIT_NOARGS_ERROR_TO | ( | index | ) |
Definition at line 936 of file log_macros.hpp.
| #define LOGIT_NOARGS_FATAL | ( | ) |
Definition at line 972 of file log_macros.hpp.
| #define LOGIT_NOARGS_FATAL_IF | ( | condition | ) |
Definition at line 1322 of file log_macros.hpp.
| #define LOGIT_NOARGS_FATAL_TO | ( | index | ) |
Definition at line 989 of file log_macros.hpp.
| #define LOGIT_NOARGS_INFO | ( | ) |
Definition at line 760 of file log_macros.hpp.
| #define LOGIT_NOARGS_INFO_IF | ( | condition | ) |
Definition at line 1126 of file log_macros.hpp.
| #define LOGIT_NOARGS_INFO_TO | ( | index | ) |
Definition at line 777 of file log_macros.hpp.
| #define LOGIT_NOARGS_TRACE | ( | ) |
Definition at line 707 of file log_macros.hpp.
| #define LOGIT_NOARGS_TRACE_IF | ( | condition | ) |
Definition at line 1077 of file log_macros.hpp.
| #define LOGIT_NOARGS_TRACE_TO | ( | index | ) |
Definition at line 724 of file log_macros.hpp.
| #define LOGIT_NOARGS_WARN | ( | ) |
Definition at line 866 of file log_macros.hpp.
| #define LOGIT_NOARGS_WARN_IF | ( | condition | ) |
Definition at line 1224 of file log_macros.hpp.
| #define LOGIT_NOARGS_WARN_TO | ( | index | ) |
Definition at line 883 of file log_macros.hpp.
| #define LOGIT_ONCE | ( | level, | |
| ... ) |
Definition at line 1361 of file log_macros.hpp.
| #define LOGIT_PRINT_DEBUG | ( | ... | ) |
Definition at line 815 of file log_macros.hpp.
| #define LOGIT_PRINT_DEBUG_IF | ( | condition, | |
| ... ) |
Definition at line 1180 of file log_macros.hpp.
| #define LOGIT_PRINT_DEBUG_TO | ( | index, | |
| ... ) |
Definition at line 832 of file log_macros.hpp.
| #define LOGIT_PRINT_ERROR | ( | ... | ) |
Definition at line 921 of file log_macros.hpp.
| #define LOGIT_PRINT_ERROR_IF | ( | condition, | |
| ... ) |
Definition at line 1278 of file log_macros.hpp.
| #define LOGIT_PRINT_ERROR_TO | ( | index, | |
| ... ) |
Definition at line 938 of file log_macros.hpp.
| #define LOGIT_PRINT_FATAL | ( | ... | ) |
Definition at line 974 of file log_macros.hpp.
| #define LOGIT_PRINT_FATAL_IF | ( | condition, | |
| ... ) |
Definition at line 1327 of file log_macros.hpp.
| #define LOGIT_PRINT_FATAL_TO | ( | index, | |
| ... ) |
Definition at line 991 of file log_macros.hpp.
| #define LOGIT_PRINT_INFO | ( | ... | ) |
Definition at line 762 of file log_macros.hpp.
| #define LOGIT_PRINT_INFO_IF | ( | condition, | |
| ... ) |
Definition at line 1131 of file log_macros.hpp.
| #define LOGIT_PRINT_INFO_TO | ( | index, | |
| ... ) |
Definition at line 779 of file log_macros.hpp.
| #define LOGIT_PRINT_TRACE | ( | ... | ) |
Definition at line 709 of file log_macros.hpp.
| #define LOGIT_PRINT_TRACE_IF | ( | condition, | |
| ... ) |
Definition at line 1082 of file log_macros.hpp.
| #define LOGIT_PRINT_TRACE_TO | ( | index, | |
| ... ) |
Definition at line 726 of file log_macros.hpp.
| #define LOGIT_PRINT_WARN | ( | ... | ) |
Definition at line 868 of file log_macros.hpp.
| #define LOGIT_PRINT_WARN_IF | ( | condition, | |
| ... ) |
Definition at line 1229 of file log_macros.hpp.
| #define LOGIT_PRINT_WARN_TO | ( | index, | |
| ... ) |
Definition at line 885 of file log_macros.hpp.
| #define LOGIT_PRINTF_DEBUG | ( | fmt, | |
| ... ) |
Definition at line 816 of file log_macros.hpp.
| #define LOGIT_PRINTF_DEBUG_IF | ( | condition, | |
| fmt, | |||
| ... ) |
Definition at line 1183 of file log_macros.hpp.
| #define LOGIT_PRINTF_DEBUG_TO | ( | index, | |
| fmt, | |||
| ... ) |
Definition at line 833 of file log_macros.hpp.
| #define LOGIT_PRINTF_ERROR | ( | fmt, | |
| ... ) |
Definition at line 922 of file log_macros.hpp.
| #define LOGIT_PRINTF_ERROR_IF | ( | condition, | |
| fmt, | |||
| ... ) |
Definition at line 1281 of file log_macros.hpp.
| #define LOGIT_PRINTF_ERROR_TO | ( | index, | |
| fmt, | |||
| ... ) |
Definition at line 939 of file log_macros.hpp.
| #define LOGIT_PRINTF_FATAL | ( | fmt, | |
| ... ) |
Definition at line 975 of file log_macros.hpp.
| #define LOGIT_PRINTF_FATAL_IF | ( | condition, | |
| fmt, | |||
| ... ) |
Definition at line 1330 of file log_macros.hpp.
| #define LOGIT_PRINTF_FATAL_TO | ( | index, | |
| fmt, | |||
| ... ) |
Definition at line 992 of file log_macros.hpp.
| #define LOGIT_PRINTF_INFO | ( | fmt, | |
| ... ) |
Definition at line 763 of file log_macros.hpp.
| #define LOGIT_PRINTF_INFO_IF | ( | condition, | |
| fmt, | |||
| ... ) |
Definition at line 1134 of file log_macros.hpp.
| #define LOGIT_PRINTF_INFO_TO | ( | index, | |
| fmt, | |||
| ... ) |
Definition at line 780 of file log_macros.hpp.
| #define LOGIT_PRINTF_TRACE | ( | fmt, | |
| ... ) |
Definition at line 710 of file log_macros.hpp.
| #define LOGIT_PRINTF_TRACE_IF | ( | condition, | |
| fmt, | |||
| ... ) |
Definition at line 1085 of file log_macros.hpp.
| #define LOGIT_PRINTF_TRACE_TO | ( | index, | |
| fmt, | |||
| ... ) |
Definition at line 727 of file log_macros.hpp.
| #define LOGIT_PRINTF_WARN | ( | fmt, | |
| ... ) |
Definition at line 869 of file log_macros.hpp.
| #define LOGIT_PRINTF_WARN_IF | ( | condition, | |
| fmt, | |||
| ... ) |
Definition at line 1232 of file log_macros.hpp.
| #define LOGIT_PRINTF_WARN_TO | ( | index, | |
| fmt, | |||
| ... ) |
Definition at line 886 of file log_macros.hpp.
| #define LOGIT_QUEUE_BLOCK logit::QueuePolicy::Block |
Queue policy for blocking when the queue is full.
Definition at line 2940 of file log_macros.hpp.
| #define LOGIT_QUEUE_DROP LOGIT_QUEUE_DROP_NEWEST |
Backward-compatible alias for dropping the newest task.
Definition at line 2937 of file log_macros.hpp.
| #define LOGIT_QUEUE_DROP_NEWEST logit::QueuePolicy::DropNewest |
Queue policy for dropping the newest task when the queue is full.
Definition at line 2931 of file log_macros.hpp.
| #define LOGIT_QUEUE_DROP_OLDEST logit::QueuePolicy::DropOldest |
Queue policy for dropping the oldest task when the queue is full.
Definition at line 2934 of file log_macros.hpp.
| #define LOGIT_RAW | ( | message | ) |
Logs an already formatted raw message without applying logger formatter patterns or level filters.
| message | Raw message text. |
Definition at line 650 of file log_macros.hpp.
| #define LOGIT_RAW_IF | ( | condition, | |
| message ) |
Logs a raw message when the condition is true.
| condition | Condition controlling emission. |
| message | Raw message text. |
Definition at line 672 of file log_macros.hpp.
| #define LOGIT_RAW_TO | ( | index, | |
| message ) |
Logs an already formatted raw message to a specific logger.
| index | Logger index. |
| message | Raw message text. |
Definition at line 661 of file log_macros.hpp.
| #define LOGIT_READ_LOG_FILE | ( | logger_index, | |
| path ) |
Reads one persisted log file from a specific file-based logger.
| logger_index | Index of logger. |
| path | Full path returned by LOGIT_LIST_LOG_FILES. |
Definition at line 2838 of file log_macros.hpp.
| #define LOGIT_READ_LOG_FILES | ( | logger_index, | |
| paths ) |
Reads several persisted log files from a specific file-based logger.
| logger_index | Index of logger. |
| paths | Full paths returned by LOGIT_LIST_LOG_FILES. |
Definition at line 2845 of file log_macros.hpp.
| #define LOGIT_READ_RANGE | ( | logger_index, | |
| from_ms, | |||
| to_ms, | |||
| limit ) |
Reads a time-range of records from a backend that supports ILogReader.
| logger_index | Index of logger. |
| from_ms | Inclusive start timestamp. |
| to_ms | Exclusive end timestamp. |
| limit | Maximum number of records (0 = unlimited). |
Definition at line 2997 of file log_macros.hpp.
| #define LOGIT_READ_RECENT | ( | logger_index, | |
| limit, | |||
| period_ms, | |||
| order ) |
Reads recent records from a backend that supports ILogReader.
| logger_index | Index of logger. |
| limit | Maximum number of records (0 = unlimited). |
| period_ms | Time window in milliseconds from now backward (0 = unlimited). |
| order | Ascending or descending result order. |
Definition at line 3011 of file log_macros.hpp.
| #define LOGIT_READ_RECENT_ASC | ( | logger_index, | |
| limit, | |||
| period_ms ) |
Reads recent records in ascending order (oldest first).
| logger_index | Index of logger. |
| limit | Maximum number of records (0 = unlimited). |
| period_ms | Time window in milliseconds from now backward (0 = unlimited). |
Definition at line 3024 of file log_macros.hpp.
| #define LOGIT_READ_RECENT_DESC | ( | logger_index, | |
| limit, | |||
| period_ms ) |
Reads recent records in descending order (newest first).
| logger_index | Index of logger. |
| limit | Maximum number of records (0 = unlimited). |
| period_ms | Time window in milliseconds from now backward (0 = unlimited). |
Definition at line 3032 of file log_macros.hpp.
| #define LOGIT_REMOVE_LOG_CALLBACK | ( | logger_index, | |
| callback_id ) |
Unregisters a previously added log callback.
| logger_index | Index of logger. |
| callback_id | Id returned by LOGIT_ADD_LOG_CALLBACK. |
Definition at line 3061 of file log_macros.hpp.
| #define LOGIT_RESET_DROPPED_TASKS | ( | ) |
Resets the dropped-tasks counter to zero.
Definition at line 2952 of file log_macros.hpp.
| #define LOGIT_SCOPE_DEBUG | ( | phase | ) |
Definition at line 289 of file log_macros.hpp.
| #define LOGIT_SCOPE_DEBUG_T | ( | threshold_ms, | |
| phase ) |
Definition at line 290 of file log_macros.hpp.
| #define LOGIT_SCOPE_ERROR | ( | phase | ) |
Definition at line 316 of file log_macros.hpp.
| #define LOGIT_SCOPE_ERROR_T | ( | threshold_ms, | |
| phase ) |
Definition at line 317 of file log_macros.hpp.
| #define LOGIT_SCOPE_FATAL | ( | phase | ) |
Definition at line 325 of file log_macros.hpp.
| #define LOGIT_SCOPE_FATAL_T | ( | threshold_ms, | |
| phase ) |
Definition at line 326 of file log_macros.hpp.
| #define LOGIT_SCOPE_FMT_DEBUG | ( | fmt_str, | |
| ... ) |
Definition at line 404 of file log_macros.hpp.
| #define LOGIT_SCOPE_FMT_DEBUG_T | ( | threshold_ms, | |
| fmt_str, | |||
| ... ) |
Definition at line 406 of file log_macros.hpp.
| #define LOGIT_SCOPE_FMT_ERROR | ( | fmt_str, | |
| ... ) |
Definition at line 434 of file log_macros.hpp.
| #define LOGIT_SCOPE_FMT_ERROR_T | ( | threshold_ms, | |
| fmt_str, | |||
| ... ) |
Definition at line 436 of file log_macros.hpp.
| #define LOGIT_SCOPE_FMT_FATAL | ( | fmt_str, | |
| ... ) |
Definition at line 444 of file log_macros.hpp.
| #define LOGIT_SCOPE_FMT_FATAL_T | ( | threshold_ms, | |
| fmt_str, | |||
| ... ) |
Definition at line 446 of file log_macros.hpp.
| #define LOGIT_SCOPE_FMT_INFO | ( | fmt_str, | |
| ... ) |
Definition at line 414 of file log_macros.hpp.
| #define LOGIT_SCOPE_FMT_INFO_T | ( | threshold_ms, | |
| fmt_str, | |||
| ... ) |
Definition at line 416 of file log_macros.hpp.
| #define LOGIT_SCOPE_FMT_TRACE | ( | fmt_str, | |
| ... ) |
Definition at line 394 of file log_macros.hpp.
| #define LOGIT_SCOPE_FMT_TRACE_T | ( | threshold_ms, | |
| fmt_str, | |||
| ... ) |
Definition at line 396 of file log_macros.hpp.
| #define LOGIT_SCOPE_FMT_WARN | ( | fmt_str, | |
| ... ) |
Definition at line 424 of file log_macros.hpp.
| #define LOGIT_SCOPE_FMT_WARN_T | ( | threshold_ms, | |
| fmt_str, | |||
| ... ) |
Definition at line 426 of file log_macros.hpp.
| #define LOGIT_SCOPE_INFO | ( | phase | ) |
Definition at line 298 of file log_macros.hpp.
| #define LOGIT_SCOPE_INFO_T | ( | threshold_ms, | |
| phase ) |
Definition at line 299 of file log_macros.hpp.
| #define LOGIT_SCOPE_PRINTF_DEBUG | ( | fmt_str, | |
| ... ) |
Definition at line 344 of file log_macros.hpp.
| #define LOGIT_SCOPE_PRINTF_DEBUG_T | ( | threshold_ms, | |
| fmt_str, | |||
| ... ) |
Definition at line 346 of file log_macros.hpp.
| #define LOGIT_SCOPE_PRINTF_ERROR | ( | fmt_str, | |
| ... ) |
Definition at line 374 of file log_macros.hpp.
| #define LOGIT_SCOPE_PRINTF_ERROR_T | ( | threshold_ms, | |
| fmt_str, | |||
| ... ) |
Definition at line 376 of file log_macros.hpp.
| #define LOGIT_SCOPE_PRINTF_FATAL | ( | fmt_str, | |
| ... ) |
Definition at line 384 of file log_macros.hpp.
| #define LOGIT_SCOPE_PRINTF_FATAL_T | ( | threshold_ms, | |
| fmt_str, | |||
| ... ) |
Definition at line 386 of file log_macros.hpp.
| #define LOGIT_SCOPE_PRINTF_INFO | ( | fmt_str, | |
| ... ) |
Definition at line 354 of file log_macros.hpp.
| #define LOGIT_SCOPE_PRINTF_INFO_T | ( | threshold_ms, | |
| fmt_str, | |||
| ... ) |
Definition at line 356 of file log_macros.hpp.
| #define LOGIT_SCOPE_PRINTF_TRACE | ( | fmt_str, | |
| ... ) |
Definition at line 334 of file log_macros.hpp.
| #define LOGIT_SCOPE_PRINTF_TRACE_T | ( | threshold_ms, | |
| fmt_str, | |||
| ... ) |
Definition at line 336 of file log_macros.hpp.
| #define LOGIT_SCOPE_PRINTF_WARN | ( | fmt_str, | |
| ... ) |
Definition at line 364 of file log_macros.hpp.
| #define LOGIT_SCOPE_PRINTF_WARN_T | ( | threshold_ms, | |
| fmt_str, | |||
| ... ) |
Definition at line 366 of file log_macros.hpp.
| #define LOGIT_SCOPE_TRACE | ( | phase | ) |
Definition at line 280 of file log_macros.hpp.
| #define LOGIT_SCOPE_TRACE_T | ( | threshold_ms, | |
| phase ) |
Definition at line 281 of file log_macros.hpp.
| #define LOGIT_SCOPE_WARN | ( | phase | ) |
Definition at line 307 of file log_macros.hpp.
| #define LOGIT_SCOPE_WARN_T | ( | threshold_ms, | |
| phase ) |
Definition at line 308 of file log_macros.hpp.
| #define LOGIT_SECTION | ( | name | ) |
Logs a raw section header in [name] form.
| name | Section name. |
Definition at line 681 of file log_macros.hpp.
| #define LOGIT_SECTION_IF | ( | condition, | |
| name ) |
Logs a raw section header when the condition is true.
| condition | Condition controlling emission. |
| name | Section name. |
Definition at line 691 of file log_macros.hpp.
| #define LOGIT_SECTION_TO | ( | index, | |
| name ) |
Logs a raw section header to a specific logger.
| index | Logger index. |
| name | Section name. |
Definition at line 686 of file log_macros.hpp.
| #define LOGIT_SET_LOG_LEVEL | ( | level | ) |
Sets minimal log level for all loggers.
| level | Minimum log level. |
Definition at line 2904 of file log_macros.hpp.
| #define LOGIT_SET_LOG_LEVEL_TO | ( | logger_index, | |
| level ) |
Sets minimal log level for a specific logger.
| logger_index | Index of logger. |
| level | Minimum log level. |
Definition at line 2899 of file log_macros.hpp.
| #define LOGIT_SET_LOGGER_ENABLED | ( | logger_index, | |
| enabled ) |
Enables or disables a logger.
| logger_index | Index of logger. |
| enabled | True to enable, false to disable. |
Definition at line 2875 of file log_macros.hpp.
| #define LOGIT_SET_MAX_QUEUE | ( | size | ) |
Sets the maximum number of queued tasks.
| size | Maximum queue size (0 for unlimited). |
Definition at line 2927 of file log_macros.hpp.
| #define LOGIT_SET_QUEUE_POLICY | ( | mode | ) |
Sets the behavior when the queue is full.
| mode | LOGIT_QUEUE_DROP_NEWEST, LOGIT_QUEUE_DROP_OLDEST or LOGIT_QUEUE_BLOCK. |
Definition at line 2944 of file log_macros.hpp.
| #define LOGIT_SET_SINGLE_MODE | ( | logger_index, | |
| single_mode ) |
Sets single mode for a specific logger.
| logger_index | Index of logger. |
| single_mode | True to enable single mode, false otherwise. |
Definition at line 2887 of file log_macros.hpp.
| #define LOGIT_SET_TIME_OFFSET | ( | logger_index, | |
| offset_ms ) |
Sets timestamp offset for a specific logger.
| logger_index | Index of logger. |
| offset_ms | Offset in milliseconds. |
Definition at line 2893 of file log_macros.hpp.
| #define LOGIT_SHUTDOWN | ( | ) |
| #define LOGIT_STREAM | ( | level | ) |
Begin a log stream for the specified log level.
Definition at line 209 of file log_macros.hpp.
| #define LOGIT_STREAM_DEBUG | ( | ) |
Definition at line 217 of file log_macros.hpp.
| #define LOGIT_STREAM_DEBUG_TO | ( | index | ) |
Definition at line 224 of file log_macros.hpp.
| #define LOGIT_STREAM_ERROR | ( | ) |
Definition at line 220 of file log_macros.hpp.
| #define LOGIT_STREAM_ERROR_TO | ( | index | ) |
Definition at line 227 of file log_macros.hpp.
| #define LOGIT_STREAM_FATAL | ( | ) |
Definition at line 221 of file log_macros.hpp.
| #define LOGIT_STREAM_FATAL_TO | ( | index | ) |
Definition at line 228 of file log_macros.hpp.
| #define LOGIT_STREAM_INFO | ( | ) |
Definition at line 218 of file log_macros.hpp.
| #define LOGIT_STREAM_INFO_TO | ( | index | ) |
Definition at line 225 of file log_macros.hpp.
| #define LOGIT_STREAM_TRACE | ( | ) |
Definition at line 216 of file log_macros.hpp.
| #define LOGIT_STREAM_TRACE_TO | ( | index | ) |
Definition at line 223 of file log_macros.hpp.
| #define LOGIT_STREAM_WARN | ( | ) |
Definition at line 219 of file log_macros.hpp.
| #define LOGIT_STREAM_WARN_TO | ( | index | ) |
Definition at line 226 of file log_macros.hpp.
| #define LOGIT_STREAM_WITH_INDEX | ( | level, | |
| index ) |
Begin a log stream for the specified log level, targeting a specific logger.
Definition at line 213 of file log_macros.hpp.
| #define LOGIT_TAG | ( | k, | |
| v ) |
Definition at line 1409 of file log_macros.hpp.
| #define LOGIT_THROTTLE | ( | level, | |
| period_ms, | |||
| ... ) |
Definition at line 1378 of file log_macros.hpp.
| #define LOGIT_TRACE | ( | ... | ) |
Definition at line 703 of file log_macros.hpp.
| #define LOGIT_TRACE0 | ( | ) |
Definition at line 704 of file log_macros.hpp.
| #define LOGIT_TRACE0_IF | ( | condition | ) |
Definition at line 1071 of file log_macros.hpp.
| #define LOGIT_TRACE0_TO | ( | index | ) |
Definition at line 721 of file log_macros.hpp.
| #define LOGIT_TRACE_EVERY_N | ( | n, | |
| ... ) |
Definition at line 1395 of file log_macros.hpp.
| #define LOGIT_TRACE_IF | ( | condition, | |
| ... ) |
Definition at line 1069 of file log_macros.hpp.
| #define LOGIT_TRACE_ONCE | ( | ... | ) |
Definition at line 1388 of file log_macros.hpp.
| #define LOGIT_TRACE_TAG | ( | msg, | |
| ... ) |
Definition at line 1411 of file log_macros.hpp.
| #define LOGIT_TRACE_THROTTLE | ( | p, | |
| ... ) |
Definition at line 1402 of file log_macros.hpp.
| #define LOGIT_TRACE_TO | ( | index, | |
| ... ) |
Definition at line 720 of file log_macros.hpp.
| #define LOGIT_WAIT | ( | ) |
Macro for waiting for all asynchronous loggers to finish processing.
Definition at line 2958 of file log_macros.hpp.
| #define LOGIT_WARN | ( | ... | ) |
Definition at line 862 of file log_macros.hpp.
| #define LOGIT_WARN0 | ( | ) |
Definition at line 863 of file log_macros.hpp.
| #define LOGIT_WARN0_IF | ( | condition | ) |
Definition at line 1218 of file log_macros.hpp.
| #define LOGIT_WARN0_TO | ( | index | ) |
Definition at line 880 of file log_macros.hpp.
| #define LOGIT_WARN_EVERY_N | ( | n, | |
| ... ) |
Definition at line 1398 of file log_macros.hpp.
| #define LOGIT_WARN_IF | ( | condition, | |
| ... ) |
Definition at line 1216 of file log_macros.hpp.
| #define LOGIT_WARN_ONCE | ( | ... | ) |
Definition at line 1391 of file log_macros.hpp.
| #define LOGIT_WARN_TAG | ( | msg, | |
| ... ) |
Definition at line 1414 of file log_macros.hpp.
| #define LOGIT_WARN_THROTTLE | ( | p, | |
| ... ) |
Definition at line 1405 of file log_macros.hpp.
| #define LOGIT_WARN_TO | ( | index, | |
| ... ) |
Definition at line 879 of file log_macros.hpp.
| #define LOGIT_WITH_LOG_READER | ( | logger_index, | |
| var_name ) |
Executes a code block when the logger backend supports ILogReader.
| logger_index | Index of logger. |
| var_name | Variable name available inside the block. |
Definition at line 2988 of file log_macros.hpp.
| #define LOGIT_WITH_LOG_SUBSCRIBER | ( | logger_index, | |
| var_name ) |
Executes a code block when the logger backend supports ILogSubscriber.
| logger_index | Index of logger. |
| var_name | Variable name available inside the block. |
Definition at line 3044 of file log_macros.hpp.
| #define LOGIT_WITH_LOGGER_AS | ( | logger_index, | |
| logger_type, | |||
| var_name ) |
Executes a code block when the logger backend has the requested type.
| logger_index | Index of logger. |
| logger_type | Concrete logger type. |
| var_name | Variable name available inside the block. |
Definition at line 2976 of file log_macros.hpp.
| #define LOGITF_DEBUG | ( | fmt_str, | |
| ... ) |
Definition at line 821 of file log_macros.hpp.
| #define LOGITF_DEBUG_IF | ( | condition, | |
| fmt_str, | |||
| ... ) |
Definition at line 1194 of file log_macros.hpp.
| #define LOGITF_DEBUG_TO | ( | index, | |
| fmt_str, | |||
| ... ) |
Definition at line 838 of file log_macros.hpp.
| #define LOGITF_ERROR | ( | fmt_str, | |
| ... ) |
Definition at line 927 of file log_macros.hpp.
| #define LOGITF_ERROR_IF | ( | condition, | |
| fmt_str, | |||
| ... ) |
Definition at line 1292 of file log_macros.hpp.
| #define LOGITF_ERROR_TO | ( | index, | |
| fmt_str, | |||
| ... ) |
Definition at line 944 of file log_macros.hpp.
| #define LOGITF_FATAL | ( | fmt_str, | |
| ... ) |
Definition at line 980 of file log_macros.hpp.
| #define LOGITF_FATAL_IF | ( | condition, | |
| fmt_str, | |||
| ... ) |
Definition at line 1341 of file log_macros.hpp.
| #define LOGITF_FATAL_TO | ( | index, | |
| fmt_str, | |||
| ... ) |
Definition at line 997 of file log_macros.hpp.
| #define LOGITF_INFO | ( | fmt_str, | |
| ... ) |
Definition at line 768 of file log_macros.hpp.
| #define LOGITF_INFO_IF | ( | condition, | |
| fmt_str, | |||
| ... ) |
Definition at line 1145 of file log_macros.hpp.
| #define LOGITF_INFO_TO | ( | index, | |
| fmt_str, | |||
| ... ) |
Definition at line 785 of file log_macros.hpp.
| #define LOGITF_TRACE | ( | fmt_str, | |
| ... ) |
Definition at line 715 of file log_macros.hpp.
| #define LOGITF_TRACE_IF | ( | condition, | |
| fmt_str, | |||
| ... ) |
Definition at line 1096 of file log_macros.hpp.
| #define LOGITF_TRACE_TO | ( | index, | |
| fmt_str, | |||
| ... ) |
Definition at line 732 of file log_macros.hpp.
| #define LOGITF_WARN | ( | fmt_str, | |
| ... ) |
Definition at line 874 of file log_macros.hpp.
| #define LOGITF_WARN_IF | ( | condition, | |
| fmt_str, | |||
| ... ) |
Definition at line 1243 of file log_macros.hpp.
| #define LOGITF_WARN_TO | ( | index, | |
| fmt_str, | |||
| ... ) |
Definition at line 891 of file log_macros.hpp.