-
Notifications
You must be signed in to change notification settings - Fork 0
Logging
Rami Awar edited this page Jan 20, 2020
·
2 revisions
The chosen logging library is spdlog, a lightweight and multi-threaded asynchronous C++ logging library. It is added as a git submodule, and its include folder is added to the list of includes when compiling OpsCore. The following macros are defined as a wrapper around the library in the oc::Log
class:
OC_TRACE(...)
OC_INFO(...)
OC_DEBUG(...)
OC_WARN(...)
OC_ERROR(...)
OC_CRITICAL(...)
Each of these macros accepts a variable number of arguments and logs to the console with a different color, indicating different severity.