Originally created by: rifkybujana
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, and show warnings only. The logging level should be configurable using flags that can be passed as parameters when building the project with CMake.
Tasks:
Each log message should be timestamped and include the log level for easy identification.
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.Set up default logging level if no flag is provided (e.g., LOG_LEVEL_ALL).
Modify the logging system to filter logs based on the specified level:
Ensure the logging system respects the selected log level and does not output messages below the configured threshold.
Configure CMake to accept log level flags as build parameters:
-DLOG_LEVEL_ALL, -DLOG_LEVEL_WARNING, or -DLOG_LEVEL_ERROR.Pass the chosen log level as a preprocessor definition to the compiler.
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.Test the CMake build process to ensure the flags work as intended and the logging level is correctly set at compile time.
Update documentation:
Acceptance Criteria:
Info, Warning, and Error.Additional Context:
Originally posted by: rifkybujana
Adding UI to these would be cool.
small popup window on the bottom right, containing messages for
Originally posted by: rifkybujana
https://github.com/patrickcjk/imgui-notify