Permalink
Browse files

Let Erfurt write logs into OW logs dir: ow logger needs to be accesse…

…d early in app lifecycle
  • Loading branch information...
pfrischmuth committed Mar 13, 2012
1 parent d4c2ac8 commit 5f36bafd720c09f6e334984e2cad94c76d746bec
Showing with 4 additions and 1 deletion.
  1. +4 −1 application/Bootstrap.php
@@ -220,6 +220,9 @@ public function _initErfurt()
$this->bootstrap('OntoWiki');
$ontoWiki = $this->getResource('OntoWiki');
+ // require Logger, since Erfurt logger should write into OW logs dir
+ $this->bootstrap('Logger');
+
try {
$erfurt = Erfurt_App::getInstance(false)->start($config);
} catch (Erfurt_Exception $ee) {
@@ -257,7 +260,7 @@ public function _initLogger()
// require config
$this->bootstrap('Config');
$config = $this->getResource('Config');
-
+
// support absolute path
if (!(preg_match('/^(\w:[\/|\\\\]|\/)/', $config->log->path) === 1)) {
// prepend OntoWiki root for relative paths

0 comments on commit 5f36baf

Please sign in to comment.