Is your feature request related to a problem? Please describe.
Currently there is no formalized logging/error reporting API. Add a set of macros that can be disabled and included in various parts of the project.
Describe the solution you'd like
A simple solution could be to define an IBLogging.h file that defines a few simple macros.
IB_ENABLE_LOGGING & IB_ENABLE_ASSERTS
IB_ASSERT(condition, message)
IB_LOG(level, category, message)
These can simply delegate to simple placeholders such as: "printf" and "assert()".
Describe the acceptance criteria
Code that currently calls assert() should be replaced with the new assertion API.
Logging should appear in the command prompt or output window.
Assertion ideally would not crash.
Notes
These APIs don't need to be perfect for now. We simply expect them to be able to be extended/modified in the future with more comprehensive functionality.
Is your feature request related to a problem? Please describe. Currently there is no formalized logging/error reporting API. Add a set of macros that can be disabled and included in various parts of the project.
Describe the solution you'd like A simple solution could be to define an IBLogging.h file that defines a few simple macros.
These can simply delegate to simple placeholders such as: "printf" and "assert()".
Describe the acceptance criteria
Notes These APIs don't need to be perfect for now. We simply expect them to be able to be extended/modified in the future with more comprehensive functionality.