Bequen / loft

2 stars 0 forks source link

Common: Better logging #36

Closed Bequen closed 2 weeks ago

Bequen commented 2 months ago

Log callback

Create a log callback function pointer.

lft_log_callback(lft::dbg::LogMessageSeverity, lft::dbg::LogMessageType, const char* __foramt, va_list args);

General rules:

Log only exceptional events. At runtime loop only log irregular events:

When no logging is done, success should be expected. Knowing that swapchain was created successfully etc. but it tells zero information.

Log levels

Separate logging to diferrent levels, so that it can be filtered at runtime and compile time.