"Fixes #3666, Log files are not automatically created"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6101 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-12-02 22:11:00 +00:00
parent 6a8c1474e0
commit 498d05ecd3

View file

@ -90,7 +90,7 @@ class CakeLog {
$filename = LOGS . $type . '.log';
}
$output = date('Y-m-d H:i:s') . ' ' . ucfirst($type) . ': ' . $msg . "\n";
$log = new File($filename);
$log = new File($filename, true);
if ($log->writable()) {
return $log->append($output);
}