RAII helper for file-based logging in a class.
More...
#include <EonLogger.h>
|
| quill::Logger * | logger {nullptr} |
RAII helper for file-based logging in a class.
Similar to Scoped, but writes to a dedicated file. Useful for optimizer traces, detailed diagnostics, etc.
Example:
public:
void step() {
QUILL_LOG_INFO(m_log, "iteration {}", iter);
}
};
RAII helper for file-based logging in a class.
Definition at line 208 of file EonLogger.h.
◆ FileScoped()
| eonc::log::FileScoped::FileScoped |
( |
std::string_view | name, |
|
|
std::string_view | filename, |
|
|
std::string_view | pattern = "%(message)" ) |
|
inlinenoexcept |
Definition at line 211 of file EonLogger.h.
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.
◆ operator quill::Logger *()
| eonc::log::FileScoped::operator quill::Logger * |
( |
| ) |
const |
|
inlinenoexcept |
◆ operator->()
| quill::Logger * eonc::log::FileScoped::operator-> |
( |
| ) |
const |
|
inlinenoexcept |
◆ operator=()
| FileScoped & eonc::log::FileScoped::operator= |
( |
quill::Logger * | l | ) |
|
|
inlinenoexcept |
Definition at line 218 of file EonLogger.h.
218 {
220 return *this;
221 }
◆ ptr()
| quill::Logger * eonc::log::FileScoped::ptr |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ logger
| quill::Logger* eonc::log::FileScoped::logger {nullptr} |
The documentation for this struct was generated from the following file: