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/ cache/
app/config/conf.local.yml app/config/conf.local.yml
app/log.txt
# Ignore transpiled files # Ignore transpiled files

View file

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

View file

@ -37,10 +37,11 @@ $di = new FactoryDefault();
/** /**
* Setup logging * Setup logging
*/ */
$di->setShared('logger', function() { $di->setShared('logger', function() use ($config) {
//return new Phalcon\Logger\Adapter\Firephp(""); //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) { $di->setShared('dispatcher', function() use ($di, $config) {