Code Context }
$output = date('Y-m-d H:i:s') . ' ' . ucfirst($type) . ': ' . $message . "\n";
return file_put_contents($filename, $output, FILE_APPEND);
$type = 'error'
$message = '[NotFoundException] ファンドレイジングが存在しません。
Request URL: /project/kizuki/201
Stack Trace:
#0 [internal function]: ProjectController->project('kizuki', '201')
#1 /var/www/html/ritaworks/lib/Cake/Controller/Controller.php(486): ReflectionMethod->invokeArgs(Object(ProjectController), Array)
#2 /var/www/html/ritaworks/lib/Cake/Routing/Dispatcher.php(187): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/html/ritaworks/lib/Cake/Routing/Dispatcher.php(162): Dispatcher->_invoke(Object(ProjectController), Object(CakeRequest), Object(CakeResponse))
#4 /var/www/html/ritaworks/app/webroot/index.php(109): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}'
$debugTypes = array(
(int) 0 => 'notice',
(int) 1 => 'info',
(int) 2 => 'debug'
)
$filename = '/var/www/html/ritaworks/app/tmp/logs/error.log'
$output = '2021-02-26 11:27:33 Error: [NotFoundException] ファンドレイジングが存在しません。
Request URL: /project/kizuki/201
Stack Trace:
#0 [internal function]: ProjectController->project('kizuki', '201')
#1 /var/www/html/ritaworks/lib/Cake/Controller/Controller.php(486): ReflectionMethod->invokeArgs(Object(ProjectController), Array)
#2 /var/www/html/ritaworks/lib/Cake/Routing/Dispatcher.php(187): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/html/ritaworks/lib/Cake/Routing/Dispatcher.php(162): Dispatcher->_invoke(Object(ProjectController), Object(CakeRequest), Object(CakeResponse))
#4 /var/www/html/ritaworks/app/webroot/index.php(109): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
'
file_put_contents - [internal], line ??
FileLog::write() - CORE/Cake/Log/Engine/FileLog.php, line 87
CakeLog::write() - CORE/Cake/Log/CakeLog.php, line 453
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 114
[main] - [internal], line ??