Setting Params for CDbLogRoute

I am trying to set CDbLogRoute parameters, but not able to store the data in YiiLog table,

Please clarify connectionID parameter



						'levels'=>'error, warning',




have you defined your database connection in the main.php configuration?

Sorry for late reply,

i have defined DB connections in main.php

If you want save logs in separate db, you can use this config\main.php




                        'connectionString' => 'mysql:host=localhost;dbname=your_dbname',

			'emulatePrepare' => true,

			'username' => 'root',

			'password' => '',

			'charset' => 'utf8',



to save logs in DB use ‘CDbLogRoute’ class




        //'logTableName'=>'yii_logs', // you can use your own created table name

        'categories'=>'error, warning',

        'levels'=>'error, warning',

        'autoCreateLogTable'=>true, // it will create auto log table, that will "yiilog"