// Add the memory provider to the default $Dbg instance, this will // use the default debug level of error. So on Error, Critical and Terminal // log message all other messages Trace, Debug, Information and Warning will // be not displayed. $Dbg.addProvider(createMemoryProvider());
$dbgError("Error Message"); // "Error Message" as an error on the console
Create and return a IDbgProvider which will log the messages to the system runtimes console if available.
Example