#include "platform.hpp"
#include "env.hpp"
#include "string.hpp"
#include <atomic>
#include <cstdlib>
#include "ravennakit/core/format.hpp"
Go to the source code of this file.
|
| void | rav::set_log_level (const char *level) |
| | Sets the log level for the application based on the given string.
|
| void | rav::set_log_level_from_env (const char *env_var="RAV_LOG_LEVEL") |
| | Tries to find given environment variable and set the log level accordingly.
|
◆ CATCH_LOG_UNCAUGHT_EXCEPTIONS
| #define CATCH_LOG_UNCAUGHT_EXCEPTIONS |
Value:
RAV_LOG_CRITICAL(
"rav::Exception caught: {} - please handle your exceptions before reaching this point.", e.
what()); \
} \
catch (const std::exception& e) { \
RAV_LOG_CRITICAL("std::exception caucght: {} - please handle your exceptions before reaching this point.", e.what()); \
} \
catch (...) { \
RAV_LOG_CRITICAL("unknown exception caucght - please handle your exceptions before reaching this point."); \
}
const char * what() const noexcept override
Definition at line 135 of file log.hpp.
◆ RAV_ENABLE_SPDLOG
| #define RAV_ENABLE_SPDLOG 0 |
◆ RAV_LOG
Value:
fmt::println("[L] " __VA_ARGS__); \
}
Definition at line 127 of file log.hpp.
◆ RAV_LOG_CRITICAL
| #define RAV_LOG_CRITICAL |
( |
| ... | ) |
|
Value:
fmt::println("[C] " __VA_ARGS__); \
}
Definition at line 99 of file log.hpp.
◆ RAV_LOG_DEBUG
| #define RAV_LOG_DEBUG |
( |
| ... | ) |
|
Value:
fmt::println("[D] " __VA_ARGS__); \
}
Definition at line 92 of file log.hpp.
◆ RAV_LOG_ERROR
| #define RAV_LOG_ERROR |
( |
| ... | ) |
|
Value:
fmt::println("[E] " __VA_ARGS__); \
}
Definition at line 106 of file log.hpp.
◆ RAV_LOG_INFO
| #define RAV_LOG_INFO |
( |
| ... | ) |
|
Value:
fmt::println("[I] " __VA_ARGS__); \
}
Definition at line 120 of file log.hpp.
◆ RAV_LOG_TRACE
| #define RAV_LOG_TRACE |
( |
| ... | ) |
|
Value:
fmt::println("[T] " __VA_ARGS__); \
}
Definition at line 85 of file log.hpp.
◆ RAV_LOG_WARNING
| #define RAV_LOG_WARNING |
( |
| ... | ) |
|
Value:
fmt::println("[W] " __VA_ARGS__); \
}
Definition at line 113 of file log.hpp.
◆ LogLevel
| Enumerator |
|---|
| off | |
| critical | |
| error | |
| warning | |
| info | |
| debug | |
| trace | |
Definition at line 80 of file log.hpp.
◆ log_level