Code Context }
$output = date('Y-m-d H:i:s') . ' ' . ucfirst($type) . ': ' . $message . "\n";
return file_put_contents($filename, $output, FILE_APPEND);
$type = 'debug'
$message = 'took[12] rows[1] SELECT `FrontTag`.`id`, `FrontTag`.`parent_id`, `FrontTag`.`tag_kbn`, `FrontTag`.`tag_code`, `FrontTag`.`tag_name`, `FrontTag`.`memo`, `FrontTag`.`crt_user_id`, `FrontTag`.`wrt_user_id`, `FrontTag`.`created`, `FrontTag`.`modified`, `FrontTag`.`deleted` FROM `nucleus_db`.`tags` AS `FrontTag` WHERE `id` = 3282 AND `deleted` IS NULL LIMIT 1'
$debugTypes = array(
(int) 0 => 'notice',
(int) 1 => 'info',
(int) 2 => 'debug'
)
$filename = '/vol/www/www-test_carsensor/html/contents/tmp/logs/20260111_debug.log'
$output = '2026-01-13 01:15:04 Debug: took[12] rows[1] SELECT `FrontTag`.`id`, `FrontTag`.`parent_id`, `FrontTag`.`tag_kbn`, `FrontTag`.`tag_code`, `FrontTag`.`tag_name`, `FrontTag`.`memo`, `FrontTag`.`crt_user_id`, `FrontTag`.`wrt_user_id`, `FrontTag`.`created`, `FrontTag`.`modified`, `FrontTag`.`deleted` FROM `nucleus_db`.`tags` AS `FrontTag` WHERE `id` = 3282 AND `deleted` IS NULL LIMIT 1
'
file_put_contents - [internal], line ??
FileLog::write() - CORE/Cake/Log/Engine/FileLog.php, line 87
CakeLog::write() - CORE/Cake/Log/CakeLog.php, line 452
CakeLog::debug() - CORE/Cake/Log/CakeLog.php, line 544
MysqlLog::execute() - APP/Model/Datasource/Database/MysqlLog.php, line 17
DboSource::fetchAll() - CORE/Cake/Model/Datasource/DboSource.php, line 669
DboSource::read() - CORE/Cake/Model/Datasource/DboSource.php, line 1080
Model::find() - CORE/Cake/Model/Model.php, line 2642
FrontsController::afterFilter() - APP/Controller/FrontsController.php, line 462
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 246
Controller::shutdownProcess() - CORE/Cake/Controller/Controller.php, line 683
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 197
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - APP/webroot/index.php, line 98