Potato Engine
Loading...
Searching...
No Matches
Debug Namespace Reference

Contains global debug functionality. More...

Functions

void BindDebugLogs ()
 Constructs global logger objects, bind to log files.

Detailed Description

Contains global debug functionality.

Ensure all Logger objects are initialized under the binding.

To use a custom logger:

  • extern logger: extern Logger {logger}
  • add to bindings
  • instantiate at the top of source file: Logger {logger}

Function Documentation

◆ BindDebugLogs()

void Debug::BindDebugLogs ( )
inline

Constructs global logger objects, bind to log files.

This method is called internally, but it must be updated with custom logger objects to operate properly

Warning
Ensure LOG_DEFAULT.init(...) is called with a valid log file path

Definition at line 65 of file Debug.hpp.