13 #ifndef PLSSVM_DETAIL_LOGGER_HPP_
14 #define PLSSVM_DETAIL_LOGGER_HPP_
19 #include "fmt/chrono.h"
20 #include "fmt/format.h"
21 #include "fmt/ostream.h"
25 #include <string_view>
108 template <
typename... Args>
113 std::cout << fmt::format(msg, args...);
121 }(std::forward<Args>(args)),
void log(const verbosity_level verb, const std::string_view msg, Args &&...args)
Definition: logger.hpp:109
constexpr bool is_tracking_entry_v
Definition: performance_tracker.hpp:96
The main namespace containing all public API functions.
Definition: backend_types.hpp:24
verbosity_level verbosity
The verbosity level used in the logging function. My be changed by the user.
verbosity_level
Enum class for all possible verbosity levels.
Definition: logger.hpp:33
std::istream & operator>>(std::istream &in, backend_type &backend)
Use the input-stream in to initialize the backend type.
verbosity_level operator|=(verbosity_level &lhs, verbosity_level rhs)
Bitwise-or to set multiple verbosity levels at once for a logging message.
verbosity_level operator&=(verbosity_level &lhs, verbosity_level rhs)
Bitwise-and to check verbosity levels for a logging message.
verbosity_level operator|(verbosity_level lhs, verbosity_level rhs)
Bitwise-or to set multiple verbosity levels at once for a logging message.
std::ostream & operator<<(std::ostream &out, backend_type backend)
Output the backend to the given output-stream out.
verbosity_level operator&(verbosity_level lhs, verbosity_level rhs)
Bitwise-and to check verbosity levels for a logging message.