move app/log.txt to cache/log/app.txt
This commit is contained in:
parent
f55c8adb20
commit
a72932a7ad
3 changed files with 4 additions and 4 deletions
|
|
@ -37,10 +37,11 @@ $di = new FactoryDefault();
|
|||
/**
|
||||
* Setup logging
|
||||
*/
|
||||
$di->setShared('logger', function() {
|
||||
$di->setShared('logger', function() use ($config) {
|
||||
|
||||
//return new Phalcon\Logger\Adapter\Firephp("");
|
||||
return new FileLogAdapter(APP_PATH . "/app/log.txt");
|
||||
$path = $config->application->logDir;
|
||||
return new FileLogAdapter($path . "app.txt");
|
||||
});
|
||||
|
||||
$di->setShared('dispatcher', function() use ($di, $config) {
|
||||
|
|
|
|||
Reference in a new issue