Parcourir la source

Refactored logging.

Qiang Xue il y a 12 ans
Parent
commit
9664884e02
2 fichiers modifiés avec 2 ajouts et 5 suppressions
  1. 1 2
      config/console.php
  2. 1 3
      config/web.php

+ 1 - 2
config/console.php

@@ -13,10 +13,9 @@ return array(
 			'class' => 'yii\caching\FileCache',
 		),
 		'log' => array(
-			'class' => 'yii\logging\Router',
 			'targets' => array(
 				array(
-					'class' => 'yii\logging\FileTarget',
+					'class' => 'yii\log\FileTarget',
 					'levels' => array('error', 'warning'),
 				),
 			),

+ 1 - 3
config/web.php

@@ -3,7 +3,6 @@
 return array(
 	'id' => 'bootstrap',
 	'basePath' => dirname(__DIR__),
-	'preload' => array('log'),
 	'components' => array(
 		'cache' => array(
 			'class' => 'yii\caching\FileCache',
@@ -16,10 +15,9 @@ return array(
 			'bundles' => require(__DIR__ . '/assets.php'),
 		),
 		'log' => array(
-			'class' => 'yii\logging\Router',
 			'targets' => array(
 				array(
-					'class' => 'yii\logging\FileTarget',
+					'class' => 'yii\log\FileTarget',
 					'levels' => array('error', 'warning'),
 				),
 			),