|
Mila 0.13.48
Deep Neural Network Library
|
Abstract logging interface and static facade for the Mila logging infrastructure. More...
#include <source_location>#include <stdexcept>#include <string_view>Classes | |
| class | Mila::Logging::Logger |
| Abstract logging interface and static facade. More... | |
Namespaces | |
| namespace | Mila |
| Mila main API namespace. | |
| namespace | Mila::Logging |
Enumerations | |
| enum class | Mila::Logging::LogLevel { Mila::Logging::Trace , Mila::Logging::Debug , Mila::Logging::Info , Mila::Logging::Warning , Mila::Logging::Error , Mila::Logging::Critical , Mila::Logging::None } |
| Severity levels for log records, ordered from most verbose to most severe. More... | |
Abstract logging interface and static facade for the Mila logging infrastructure.
Defines the Logger base class, the LogLevel enumeration, and the static convenience methods that form the primary call-site API. Concrete sink implementations (ConsoleSink, FileSink, NullSink) derive from Logger and are registered via setDefaultLogger().
Message formatting is the caller's responsibility. Use std::format at the call site before passing the result to a log method:
A default logger must be registered via setDefaultLogger() before any log call is made. Failure to do so will throw std::runtime_error. The correct place to register is Mila::initialize(). For test harnesses that want silent logging, register a NullSink.