Show
Open your JS console for these tests.
Disable DEBUG_DEVELOPER
Browse around Moodle generally
Confirm that there are no YUI log messages displayed (note, your browser may emit a few messages and warnings, but they shouldn't come from YUI)
Enable DEBUG_DEVELOPER
Browse around Moodle generally
Confirm that there are relatively few log messages (those presented should have a log level of warn, or error)
In the console try (and use your cunning detective skills to confirm that they work as expected:
Y.log('This message will not be displayed');
Y.log('This message will not be displayed', 'debug');
Y.log('This message will not be displayed', 'info');
Y.log('This message will be displayed', 'warn');
Y.log('This message will be displayed', 'error');
Open your config.php and set:
$CFG->yuiloginclude = array(
'moodle-core-dock-loader' => true,
'42960' => true,
);
Open the home page in Moodle in any theme which supports the dock
Confirm that you saw messages relating to the dock loader
Confirm something relating to the dock was displayed
Confirm the following work as expected when entered into the console:
Y.log('This message will be displayed');
Y.log('This message will be displayed', 'debug');
Y.log('This message will be displayed', 'info');
Y.log('This message will be displayed', 'warn');
Y.log('This message will be displayed', 'error');
Y.log('This message will be displayed', 'debug', '42960');
Y.log('This message will be displayed', 'info', '42960');
Y.log('This message will be displayed', 'warn', '42960');
Y.log('This message will be displayed', 'error', '42960');
Y.log('This message will not be displayed', 'debug', 'somethingelse');
Y.log('This message will not be displayed', 'info', 'somethingelse');
Y.log('This message will not be displayed', 'warn', 'somethingelse');
Y.log('This message will not be displayed', 'error', 'somethingelse');
Open your config.php and set:
$CFG->yuiloginclude = array();
$CFG->yuilogexclude = array(
'moodle-core-dock-loader' => true,
'42960' => true,
);
Refresh the page you previously loaded
Confirm that nothing relating to the dock loader was displayed
Confirm something relating to the dock was displayed
Confirm the following work as expected when entered into the console:
Y.log('This message will be displayed');
Y.log('This message will be displayed', 'debug');
Y.log('This message will be displayed', 'info');
Y.log('This message will be displayed', 'warn');
Y.log('This message will be displayed', 'error');
Y.log('This message will not be displayed', 'debug', '42960');
Y.log('This message will not be displayed', 'info', '42960');
Y.log('This message will not be displayed', 'warn', '42960');
Y.log('This message will not be displayed', 'error', '42960');
Y.log('This message will be displayed', 'debug', 'somethingelse');
Y.log('This message will be displayed', 'info', 'somethingelse');
Y.log('This message will be displayed', 'warn', 'somethingelse');
Y.log('This message will be displayed', 'error', 'somethingelse');
Open your config.php and set:
$CFG->yuiloginclude = array(
'example' => true,
);
$CFG->yuilogexclude = array(
'moodle-core-dock-loader' => true,
'42960' => true,
);
Refresh the page you previously loaded
Confirm that nothing relating to the dock loader was displayed
Confirm something relating to the dock was displayed
Confirm the following work as expected when entered into the console:
Y.log('This message will be displayed');
Y.log('This message will be displayed', 'debug');
Y.log('This message will be displayed', 'info');
Y.log('This message will be displayed', 'warn');
Y.log('This message will be displayed', 'error');
Y.log('This message will be displayed', 'debug', 'example');
Y.log('This message will be displayed', 'info', 'example');
Y.log('This message will be displayed', 'warn', 'example');
Y.log('This message will be displayed', 'error', 'example');
Y.log('This message will not be displayed', 'debug', '42960');
Y.log('This message will not be displayed', 'info', '42960');
Y.log('This message will not be displayed', 'warn', '42960');
Y.log('This message will not be displayed', 'error', '42960');
Y.log('This message will be displayed', 'debug', 'somethingelse');
Y.log('This message will be displayed', 'info', 'somethingelse');
Y.log('This message will be displayed', 'warn', 'somethingelse');
Y.log('This message will be displayed', 'error', 'somethingelse');
Open your config.php and set:
$CFG->yuilogexclude = array();
$CFG->yuiloginclude = array(
'42960' => true,
'' => false,
);
Refresh the page you previously loaded
Confirm that nothing relating to the dock loader was displayed
Confirm something relating to the dock was displayed
Confirm the following work as expected when entered into the console:
Y.log('This message will not be displayed');
Y.log('This message will not be displayed', 'debug');
Y.log('This message will not be displayed', 'info');
Y.log('This message will not be displayed', 'warn');
Y.log('This message will not be displayed', 'error');
Y.log('This message will be displayed', 'debug', '42960');
Y.log('This message will be displayed', 'info', '42960');
Y.log('This message will be displayed', 'warn', '42960');
Y.log('This message will be displayed', 'error', '42960');