CakePHP 2.xではbootstrap.php内にあらかじめアプリケーションログの設定が書かれています。2.xで日付ごとにログファイルが切り替わるよう設定してみました。 日ごとにログを切り替える設定 app/Config/bootstrap.phpを以下のように変更もしくは追加して下さい。 // app/Config/bootstrap.php[変更or追加 後] /** * Configures default file logging options */ App::uses( 'CakeLog', 'Log'); CakeLog::config( 'debug', array( 'engine' => 'FileLog', 'types' => array( 'notice', 'info', 'debug'), 'file' => date( 'Ymd') . '_' . '
![ログローテーション](https://cdn-ak-scissors.b.st-hatena.com/image/square/6dd3eeb0d8f1746badd1e6b9523a492db0f4412c/height=288;version=1;width=512/http%3A%2F%2Fkwski.net%2Fblog%2Fwp-content%2Fuploads%2F2013%2F05%2Fcakephp-150x150.png)