6#ifndef OPENEV_UTILS_LOGGER_HPP
7#define OPENEV_UTILS_LOGGER_HPP
18inline void info(
const char *message) {
19 std::cout <<
"INFO. openev: " << message <<
'\n';
26inline void warning(
const char *message,
const bool assert_condition =
false) {
27 if(assert_condition) {
30 std::cout <<
"WARNING. openev: " << message <<
'\n';
37inline void error(
const char *message,
const bool assert_condition =
false) {
38 if(assert_condition) {
41 throw std::runtime_error(
"ERROR. openev: " + std::string(message, std::allocator<char>()));
void info(const char *message)
Log message at info level.
Definition logger.hpp:18
void error(const char *message, const bool assert_condition=false)
Log message at error level.
Definition logger.hpp:37
void warning(const char *message, const bool assert_condition=false)
Log message at warning level.
Definition logger.hpp:26