Skip to content

Instantly share code, notes, and snippets.

@DCoderLT
Forked from anonymous/gist:4420137
Last active December 10, 2015 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DCoderLT/4420192 to your computer and use it in GitHub Desktop.
Save DCoderLT/4420192 to your computer and use it in GitHub Desktop.
<?php
// In the app configuration:
'components' => array(
'db' => array(
'enableParamLogging' => true, // self explanatory
),
'log' => array(
'routes' => array(
array(
'class' => 'CFileLogRoute',
'levels' => 'trace,log',
'categories' => 'system.db.CDbCommand', // and other properties appropriate for the log route, e. g. filename
),
),
),
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment