NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
#include <NesLogger.hpp>
Public Member Functions | |
Logger (const std::string &logFileName, LogLevel level) | |
Configures this Logger using a file path for the filesystem logging and a logging level. More... | |
~Logger () | |
Logger () | |
Logger (const Logger &)=delete | |
void | operator= (const Logger &)=delete |
void | shutdown () |
template<typename... arguments> | |
constexpr void | trace (spdlog::source_loc &&loc, fmt::format_string< arguments... > &&format, arguments &&... args) |
Logs a tracing message using a format, a source location, and a set of arguments to display. More... | |
template<typename... arguments> | |
constexpr void | warn (spdlog::source_loc &&loc, fmt::format_string< arguments... > format, arguments &&... args) |
Logs a warning message using a format, a source location, and a set of arguments to display. More... | |
template<typename... arguments> | |
constexpr void | fatal (spdlog::source_loc &&loc, fmt::format_string< arguments... > format, arguments &&... args) |
Logs a fatal error message using a format, a source location, and a set of arguments to display. More... | |
template<typename... arguments> | |
constexpr void | info (spdlog::source_loc &&loc, fmt::format_string< arguments... > format, arguments &&... args) |
Logs an info message using a format, a source location, and a set of arguments to display. More... | |
template<typename... arguments> | |
constexpr void | debug (spdlog::source_loc &&loc, fmt::format_string< arguments... > format, arguments &&... args) |
Logs a debug message using a format, a source location, and a set of arguments to display. More... | |
template<typename... arguments> | |
constexpr void | error (spdlog::source_loc &&loc, fmt::format_string< arguments... > format, arguments &&... args) |
Logs an error message using a format, a source location, and a set of arguments to display. More... | |
void | flush () |
flushes the current log to filesystem More... | |
void | forceFlush () |
forcefully flushes the current log to filesystem More... | |
LogLevel | getCurrentLogLevel () const noexcept |
get the current logging level More... | |
void | changeLogLevel (LogLevel newLevel) |
change the current logging level to a new level More... | |
|
explicit |
Configures this Logger using a file path for the filesystem logging and a logging level.
logFileName | |
level |
References backward::ColorMode::always, changeLogLevel(), and NES::detail::toSpdlogLevel().
NES::detail::Logger::~Logger | ( | ) |
NES::detail::Logger::Logger | ( | ) |
|
delete |
void NES::detail::Logger::changeLogLevel | ( | LogLevel | newLevel | ) |
change the current logging level to a new level
newLevel |
References std::swap(), and NES::detail::toSpdlogLevel().
Referenced by Logger().
|
inlineconstexpr |
Logs a debug message using a format, a source location, and a set of arguments to display.
arguments |
loc | |
format | |
args |
References backward::details::move().
|
inlineconstexpr |
Logs an error message using a format, a source location, and a set of arguments to display.
arguments |
loc | |
format | |
args |
References backward::details::move().
|
inlineconstexpr |
Logs a fatal error message using a format, a source location, and a set of arguments to display.
arguments |
loc | |
format | |
args |
References backward::details::move().
|
inline |
flushes the current log to filesystem
void NES::detail::Logger::forceFlush | ( | ) |
forcefully flushes the current log to filesystem
|
inlinenoexcept |
get the current logging level
|
inlineconstexpr |
Logs an info message using a format, a source location, and a set of arguments to display.
arguments |
loc | |
format | |
args |
References backward::details::move().
|
delete |
void NES::detail::Logger::shutdown | ( | ) |
|
inlineconstexpr |
Logs a tracing message using a format, a source location, and a set of arguments to display.
arguments |
loc | |
format | |
args |
References backward::details::move().
|
inlineconstexpr |
Logs a warning message using a format, a source location, and a set of arguments to display.
arguments |
loc | |
format | |
args |
References backward::details::move().