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 = '[MissingControllerException] Controller class Index.phpController could not be found.
#0 /storage/b/3e/cd/minhobox2/public_html/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}'
$debugTypes = array(
(int) 0 => 'notice',
(int) 1 => 'info',
(int) 2 => 'debug'
)
$filename = '/storage/b/3e/cd/minhobox2/public_html/app/tmp/logs/error.log'
$output = '2024-03-29 11:59:09 Error: [MissingControllerException] Controller class Index.phpController could not be found.
#0 /storage/b/3e/cd/minhobox2/public_html/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
'
file_put_contents - [internal], line ??
FileLog::write() - CORE/Cake/Log/Engine/FileLog.php, line 69
CakeLog::write() - CORE/Cake/Log/CakeLog.php, line 204
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 118
[main] - [internal], line ??