-
Notifications
You must be signed in to change notification settings - Fork 0
CPlusPlus API
Aleksander Płomiński edited this page Jun 22, 2025
·
1 revision
The cpplogger
class provides a simple logging mechanism for C++. It allows logging messages to both a file and the console. The logger supports different log levels such as info
, warning
, and error
.
Initializes the logger by opening or creating a log file and writing an initialization message.
-
console_enabled
: A boolean flag indicating whether logs should also be printed to the console. -
log_file
: The path to the log file where logs will be stored.
Logs a general message with a timestamp.
Logs an informational message with a specified importance level.
Logs a warning message with a specified importance level.