Archived
1
0
Fork 0

move app/log.txt to cache/log/app.txt

This commit is contained in:
Henrik Hautakoski 2018-04-02 12:23:08 +02:00
parent f55c8adb20
commit a72932a7ad
3 changed files with 4 additions and 4 deletions

View file

@ -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) {