Implement a Logging System with Configurable Log Levels #19
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Implement a Logging System with Configurable Log Levels
Description:
We need to create a logging system that allows for different levels of log visibility:
show all logs
,only show errors
, andshow warnings only
. The logging level should be configurable using flags that can be passed as parameters when building the project with CMake.Tasks:
Design the logging system:
Add CMake options for setting log level:
LOG_LEVEL_ALL
: Show all logs (Info, Warning, Error).LOG_LEVEL_WARNING
: Show only warnings and errors.LOG_LEVEL_ERROR
: Show only errors.LOG_LEVEL_ALL
).Modify the logging system to filter logs based on the specified level:
Configure CMake to accept log level flags as build parameters:
-DLOG_LEVEL_ALL
,-DLOG_LEVEL_WARNING
, or-DLOG_LEVEL_ERROR
.Testing:
LOG_LEVEL_ALL
to verify that all messages (Info, Warning, Error) are shown.LOG_LEVEL_WARNING
to confirm only warnings and errors appear.LOG_LEVEL_ERROR
to ensure only error messages are displayed.Update documentation:
Acceptance Criteria:
Info
,Warning
, andError
.Additional Context:
The text was updated successfully, but these errors were encountered: