mgd_debug_start
mgd_debug_start -- Sets internal log level to debug, and writes debug messages to Apache error log.
Description
void mgd_debug_start (void)
Minimum version: Midgard 1.6.0rc2 ("Night Boat")
Sets internal log level to debug, and writes debug messages to Apache error log.
This function is a replacement for MidgardLog Apache directive. Additionaly (except SQL statements) it writes current called function and current Sitegroup used in function.
This function doesn't require Apache to be stopped or reloaded, it may be called any time during PHP script, and what is important sets internal debug level per requests. Not per host or server.
You may always "unset" debug level with mgd_debug_stop().
// Start debugging
mgd_debug_start();
// Do something SQL-related
mgd_include_snippet("/some/foo/snippet");
// Stop debugging
mgd_debug_stop();
