#include "quill/Backend.h"#include "quill/Frontend.h"#include "quill/LogMacros.h"#include "quill/Logger.h"#include "quill/sinks/ConsoleSink.h"#include "quill/sinks/FileSink.h"#include <atomic>#include <filesystem>#include <mutex>#include <source_location>#include <string>#include <string_view>#include <system_error>Go to the source code of this file.
Classes | |
| struct | eonc::log::Scoped |
| RAII helper for class-scoped logging. More... | |
| struct | eonc::log::FileScoped |
| RAII helper for file-based logging in a class. More... | |
Namespaces | |
| namespace | eonc |
| RAII resource manager for the ARTn C library with global synchronization. | |
| namespace | eonc::log |
| namespace | eonc::log::detail |
Macros | |
| #define | EONC_EXPAND(x) |
| #define | EONC_LOG_TRACE(...) |
| Convenience macro for one-shot logging without storing a logger. | |
| #define | EONC_LOG_DEBUG(...) |
| #define | EONC_LOG_INFO(...) |
| #define | EONC_LOG_WARNING(...) |
| #define | EONC_LOG_ERROR(...) |
| #define | EONC_LOG_CRITICAL(...) |
Functions | |
| quill::Logger * | eonc::log::get () noexcept |
| Get or create the default "combi" logger. | |
| quill::Logger * | eonc::log::traceback () noexcept |
| Get or create the "_traceback" logger for traceback logging. | |
| quill::Logger * | eonc::log::get_file (std::string_view name, std::string_view filename, std::string_view pattern="%(message)") |
| Get or create a named logger with a file sink. | |
Variables | |
| constexpr std::string_view | eonc::log::detail::kDefaultLoggerName {"combi"} |
| constexpr std::string_view | eonc::log::detail::kTracebackLoggerName {"_traceback"} |
| #define EONC_EXPAND | ( | x | ) |
Definition at line 228 of file EonLogger.h.
| #define EONC_LOG_CRITICAL | ( | ... | ) |
Definition at line 268 of file EonLogger.h.
| #define EONC_LOG_DEBUG | ( | ... | ) |
Definition at line 244 of file EonLogger.h.
| #define EONC_LOG_ERROR | ( | ... | ) |
Definition at line 262 of file EonLogger.h.
| #define EONC_LOG_INFO | ( | ... | ) |
Definition at line 250 of file EonLogger.h.
| #define EONC_LOG_TRACE | ( | ... | ) |
Convenience macro for one-shot logging without storing a logger.
Use when you only need to log once or twice in a function and don't want to declare a logger variable.
Example: EONC_LOG_INFO("quick message"); EONC_LOG_DEBUG("value: {}", x);
Definition at line 238 of file EonLogger.h.
| #define EONC_LOG_WARNING | ( | ... | ) |
Definition at line 256 of file EonLogger.h.