|
| | DefaultLogger (LogLevel initialLevel=LogLevel::Info) |
| |
| LogLevel | getLevel () const override |
| |
| bool | isEnabled (LogLevel level) const override |
| |
| void | log (std::string_view message, LogLevel level, const std::source_location &location=std::source_location::current()) override |
| |
| void | log_critical (std::string_view message, const std::source_location &location=std::source_location::current()) override |
| |
| void | log_debug (std::string_view message, const std::source_location &location=std::source_location::current()) override |
| |
| void | log_error (std::string_view message, const std::source_location &location=std::source_location::current()) override |
| |
| void | log_info (std::string_view message, const std::source_location &location=std::source_location::current()) override |
| |
| void | log_trace (std::string_view message, const std::source_location &location=std::source_location::current()) override |
| |
| void | log_warning (std::string_view message, const std::source_location &location=std::source_location::current()) override |
| |
| void | setIncludeSourceLocation (bool include) |
| |
| void | setIncludeTimestamp (bool include) |
| |
| void | setLevel (LogLevel level) override |
| |
| virtual | ~Logger ()=default |
| |
|
| static void | critical (std::string_view message, const std::source_location &location=std::source_location::current()) |
| |
| template<typename... Args> |
| static void | critical_fmt (std::format_string< Args... > fmt, Args &&... args) |
| |
| static void | debug (std::string_view message, const std::source_location &location=std::source_location::current()) |
| |
| template<typename... Args> |
| static void | debug_fmt (std::format_string< Args... > fmt, Args &&... args) |
| |
| static Logger & | defaultLogger () |
| |
| static void | error (std::string_view message, const std::source_location &location=std::source_location::current()) |
| |
| template<typename... Args> |
| static void | error_fmt (std::format_string< Args... > fmt, Args &&... args) |
| |
| static void | info (std::string_view message, const std::source_location &location=std::source_location::current()) |
| |
| template<typename... Args> |
| static void | info_fmt (std::format_string< Args... > fmt, Args &&... args) |
| |
| static void | setDefaultLogger (Logger *logger) |
| |
| static void | trace (std::string_view message, const std::source_location &location=std::source_location::current()) |
| |
| template<typename... Args> |
| static void | trace_fmt (std::format_string< Args... > fmt, Args &&... args) |
| |
| static void | warning (std::string_view message, const std::source_location &location=std::source_location::current()) |
| |
| template<typename... Args> |
| static void | warning_fmt (std::format_string< Args... > fmt, Args &&... args) |
| |
◆ DefaultLogger()
◆ getCurrentTimestamp()
| std::string Mila::Utils::DefaultLogger::getCurrentTimestamp |
( |
| ) |
const |
|
inlineprivate |
◆ getLevel()
| LogLevel Mila::Utils::DefaultLogger::getLevel |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getLocationInfo()
| std::string Mila::Utils::DefaultLogger::getLocationInfo |
( |
const std::source_location & |
location | ) |
const |
|
inlineprivate |
◆ isEnabled()
| bool Mila::Utils::DefaultLogger::isEnabled |
( |
LogLevel |
level | ) |
const |
|
inlineoverridevirtual |
◆ log()
| void Mila::Utils::DefaultLogger::log |
( |
std::string_view |
message, |
|
|
LogLevel |
level, |
|
|
const std::source_location & |
location = std::source_location::current() |
|
) |
| |
|
inlineoverridevirtual |
◆ log_critical()
| void Mila::Utils::DefaultLogger::log_critical |
( |
std::string_view |
message, |
|
|
const std::source_location & |
location = std::source_location::current() |
|
) |
| |
|
inlineoverridevirtual |
◆ log_debug()
| void Mila::Utils::DefaultLogger::log_debug |
( |
std::string_view |
message, |
|
|
const std::source_location & |
location = std::source_location::current() |
|
) |
| |
|
inlineoverridevirtual |
◆ log_error()
| void Mila::Utils::DefaultLogger::log_error |
( |
std::string_view |
message, |
|
|
const std::source_location & |
location = std::source_location::current() |
|
) |
| |
|
inlineoverridevirtual |
◆ log_info()
| void Mila::Utils::DefaultLogger::log_info |
( |
std::string_view |
message, |
|
|
const std::source_location & |
location = std::source_location::current() |
|
) |
| |
|
inlineoverridevirtual |
◆ log_trace()
| void Mila::Utils::DefaultLogger::log_trace |
( |
std::string_view |
message, |
|
|
const std::source_location & |
location = std::source_location::current() |
|
) |
| |
|
inlineoverridevirtual |
◆ log_warning()
| void Mila::Utils::DefaultLogger::log_warning |
( |
std::string_view |
message, |
|
|
const std::source_location & |
location = std::source_location::current() |
|
) |
| |
|
inlineoverridevirtual |
◆ logImpl()
| void Mila::Utils::DefaultLogger::logImpl |
( |
std::string_view |
message, |
|
|
LogLevel |
level, |
|
|
const std::source_location & |
location |
|
) |
| |
|
inlineprivate |
◆ logLevelToString()
| static constexpr const char * Mila::Utils::DefaultLogger::logLevelToString |
( |
LogLevel |
level | ) |
|
|
inlinestaticconstexprprivate |
◆ setIncludeSourceLocation()
| void Mila::Utils::DefaultLogger::setIncludeSourceLocation |
( |
bool |
include | ) |
|
|
inline |
◆ setIncludeTimestamp()
| void Mila::Utils::DefaultLogger::setIncludeTimestamp |
( |
bool |
include | ) |
|
|
inline |
◆ setLevel()
| void Mila::Utils::DefaultLogger::setLevel |
( |
LogLevel |
level | ) |
|
|
inlineoverridevirtual |
◆ currentLevel_
◆ includeSourceLocation_
| bool Mila::Utils::DefaultLogger::includeSourceLocation_ = true |
|
private |
◆ includeTimestamp_
| bool Mila::Utils::DefaultLogger::includeTimestamp_ = true |
|
private |
◆ logMutex_
| std::mutex Mila::Utils::DefaultLogger::logMutex_ |
|
mutableprivate |
The documentation for this class was generated from the following file: