Skip to content

Commit

Permalink
Change config for IXT Profiler changes
Browse files Browse the repository at this point in the history
  • Loading branch information
websiteduck committed Mar 4, 2012
1 parent 5fff8d6 commit 5fb50c3
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions application/config/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@

/**
* Global Event Logging
* If this is false, the Event class will ignore all events.
* If set to true, the Profiler will log everything regardless of what
* classes having logging enabled.
*/
\System\Profiler::$log_events = true;
\System\Profiler::log_everything(true);

/**
* Class-based Event Logging
* If global event logging is set to false, use this to enable logging
* on a per-class basis.
*/
// \System\Profiler::enable_logging('\System\Database');

/**
* Show the event log based on some condition. For example:
Expand All @@ -15,11 +23,14 @@
* Show based on variable set in config files:
* if ($debug === true) {
*/
if (true) \System\Profiler::$display_log = true;
if (true)
{
\System\Profiler::output_json(true);
\System\Profiler::output_html(true);
}

/**
* Database Configuration
* \System\Database::connect(identifier, driver, server, username, password, database);
*/
\System\Database::$log_events = true;
\System\Database::connect_dsn('main', 'sqlite:ixt_demo.sqlite');

0 comments on commit 5fb50c3

Please sign in to comment.