|
FlatImage
A configurable Linux containerization system
|
Base class for level-specific log writers (debug, info, warn, error, critical) More...
#include <log.hpp>
Public Member Functions | |
| Writer (Location const &location, Level const &level, std::string prefix, std::ostream &ostream) | |
| Constructs a Writer with location and level information. | |
| template<ns_concept::StringRepresentable T, typename... Args> requires ( ( ns_concept::StringRepresentable<Args> or ns_concept::Iterable<Args> ) and ... ) | |
| void | operator() (T &&format, Args &&... args) |
| Writes a formatted log message. | |
Base class for level-specific log writers (debug, info, warn, error, critical)
Handles the actual formatting and output of log messages to both the sink file (if set) and the console (if level is enabled). Thread-safe due to thread_local logger.
|
inline |
Constructs a Writer with location and level information.
| location | Source code location |
| level | Log level for this writer |
| prefix | Single-character prefix for log messages |
| ostream | Output stream reference (std::cout or std::cerr) |
Definition at line 468 of file log.hpp.
|
inline |
Writes a formatted log message.
| T | Type of the format string (string representable) |
| Args | Types of format arguments (variadic, string representable or iterable) |
| format | The format string |
| args | The format arguments |
Definition at line 484 of file log.hpp.