ソースを参照

Set debug, error log config

Ishan Vyas 5 年 前
コミット
b20e48157d
1 ファイル変更16 行追加0 行削除
  1. 16 0
      tests/bootstrap.php

+ 16 - 0
tests/bootstrap.php

@@ -85,6 +85,22 @@ $cache = [
 
 
 Cake\Cache\Cache::setConfig($cache);
 Cake\Cache\Cache::setConfig($cache);
 
 
+Cake\Log\Log::setConfig('debug', [
+	'className' => 'Cake\Log\Engine\FileLog',
+	'path' => LOGS,
+	'file' => 'debug',
+	'levels' => ['notice', 'info', 'debug'],
+	'url' => env('LOG_DEBUG_URL', null),
+]);
+Cake\Log\Log::setConfig('error', [
+	'className' => 'Cake\Log\Engine\FileLog',
+	'path' => LOGS,
+	'file' => 'error',
+	'levels' => ['warning', 'error', 'critical', 'alert', 'emergency'],
+	'url' => env('LOG_ERROR_URL', null),
+]);
+
+
 Cake\Utility\Security::setSalt('foo');
 Cake\Utility\Security::setSalt('foo');
 
 
 // Why is this required?
 // Why is this required?