6#ifndef OPENEV_UTILS_LOGGER_HPP
7#define OPENEV_UTILS_LOGGER_HPP
20inline void info(
const char *message) {
21 std::cout <<
"INFO. openev: " << message <<
'\n';
28inline void warning(
const char *message,
const bool assert_condition =
false) {
29 if(assert_condition) {
32 std::cout <<
"WARNING. openev: " << message <<
'\n';
39inline void error(
const char *message,
const bool assert_condition =
false) {
40 if(assert_condition) {
43 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:20
void error(const char *message, const bool assert_condition=false)
Log message at error level.
Definition logger.hpp:39
void warning(const char *message, const bool assert_condition=false)
Log message at warning level.
Definition logger.hpp:28