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

1
.gitignore vendored
View file

@ -5,7 +5,6 @@ node_modules/
cache/
app/config/conf.local.yml
app/log.txt
# Ignore transpiled files

View file

@ -7,7 +7,7 @@ application:
pluginsDir : ../app/plugins/
libraryDir : ../app/library/
formsDir : ../app/forms/
cacheDir : ../cache/
logDir : ../cache/log/
viewCacheDir : ../cache/view/
sessionDir : ../cache/sess/
baseUri : /

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