Namespaces | |
| namespace | detail |
Classes | |
| struct | Scoped |
| RAII helper for class-scoped logging. More... | |
| struct | FileScoped |
| RAII helper for file-based logging in a class. More... | |
Functions | |
| quill::Logger * | init_client () noexcept |
| Start the client backend and the combi / traceback loggers once. | |
| quill::Logger * | get () noexcept |
| Get or create the default "combi" logger. | |
| quill::Logger * | traceback () noexcept |
| Get or create the "_traceback" logger for traceback logging. | |
| quill::Logger * | 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. | |
|
inlinenodiscardnoexcept |
Get or create the default "combi" logger.
This is the primary logger used throughout eOn. Returns a raw pointer (quill's API) that is valid for the lifetime of the program.
Usage: auto* log = eonc::log::get(); QUILL_LOG_INFO(log, "message");
Definition at line 111 of file EonLogger.h.
|
inlinenodiscard |
Get or create a named logger with a file sink.
Creates a logger that writes to the specified file with the given pattern. If the logger already exists, returns the existing instance.
| name | Logger name (must be unique) |
| filename | Output file path |
| pattern | Quill format pattern (default: "%(message)") |
Definition at line 178 of file EonLogger.h.
|
inlinenodiscardnoexcept |
Start the client backend and the combi / traceback loggers once.
Not called from process load. Help, version, and feature flags return before this. Tests that already registered "combi" are left alone.
Definition at line 43 of file EonLogger.h.
|
inlinenodiscardnoexcept |
Get or create the "_traceback" logger for traceback logging.
This logger is used for detailed traceback and debugging information. Returns a raw pointer (quill's API) valid for the lifetime of the program.
Usage: auto* log = eonc::log::traceback(); QUILL_LOG_INFO(log, "traceback message");
Definition at line 155 of file EonLogger.h.