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
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -5,7 +5,6 @@ node_modules/
|
|||
|
||||
cache/
|
||||
app/config/conf.local.yml
|
||||
app/log.txt
|
||||
|
||||
# Ignore transpiled files
|
||||
|
||||
|
|
|
|||
|
|
@ -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 : /
|
||||
|
|
|
|||
|
|
@ -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