MantisBT: master 3ea2997a

Author Committer Branch Timestamp Parent
grangeway grangeway master 2010-08-15 08:46 master 1289ac35
Changeset

Diagnostic Logging

This is hopefully a simplification for the end user of the diagnostic logging setup.

There is now a log_destination of 'page' - which display diagnostic output at the end of the page, replacing the queries_list functionality - therefore 'show_queries_list' has been removed.

Equivalent output can be achieved by setting:

$g_log_level = LOG_DATABASE;
$g_log_destination = 'page';

In addition, a log_destination of 'none' has been added such that a plugin can be used to handle events without events going to php's error_log.

For production use, an admin check has been added suggesting that page|firebug are not the destination, and warning if diagnostic logging is on.

Note: Currently unique query count is only shown with queries_count if log_level=DB (log_destination=none).

mod - plugins/MantisGraph/pages/summary_graph_cumulative_bydate2.php Diff File
mod - core/print_api.php Diff File
mod - core/obsolete.php Diff File
mod - plugins/MantisGraph/core/graph_api.php Diff File
mod - core/html_api.php Diff File
mod - lang/strings_english.txt Diff File
mod - core/logging_api.php Diff File
mod - core/helper_api.php Diff File
mod - css/default.css Diff File
mod - admin/check/check_config_inc.php Diff File
mod - core/database_api.php Diff File
mod - config_defaults_inc.php Diff File