@@ -18,8 +18,8 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | |
| 20 | 20 | if (!defined('LOG_DIR')) { |
| 21 | - GeneratorHelper::createDir(BASE_DIR . DIRECTORY_SEPARATOR . 'logs'); |
|
| 22 | - define('LOG_DIR', BASE_DIR . DIRECTORY_SEPARATOR . 'logs'); |
|
| 21 | + GeneratorHelper::createDir(BASE_DIR.DIRECTORY_SEPARATOR.'logs'); |
|
| 22 | + define('LOG_DIR', BASE_DIR.DIRECTORY_SEPARATOR.'logs'); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | /** |
@@ -57,10 +57,10 @@ discard block |
||
| 57 | 57 | { |
| 58 | 58 | $args = func_get_args(); |
| 59 | 59 | list($logger, $debug, $path) = $this->setup($args); |
| 60 | - $this->stream = fopen($path . DIRECTORY_SEPARATOR . date('Ymd') . '.log', 'a+'); |
|
| 60 | + $this->stream = fopen($path.DIRECTORY_SEPARATOR.date('Ymd').'.log', 'a+'); |
|
| 61 | 61 | if (is_resource($this->stream)) { |
| 62 | 62 | $this->addPushLogger($logger, $debug); |
| 63 | - } else { |
|
| 63 | + }else { |
|
| 64 | 64 | throw new ConfigException(t('Error creating logger')); |
| 65 | 65 | } |
| 66 | 66 | $this->logLevel = strtoupper(Config::getParam('log.level', 'NOTICE')); |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | private function createLoggerPath() |
| 142 | 142 | { |
| 143 | 143 | $logger = $this->setLoggerName(); |
| 144 | - $path = Config::getParam('default.log.path',LOG_DIR) . DIRECTORY_SEPARATOR . $logger . DIRECTORY_SEPARATOR . date('Y') . DIRECTORY_SEPARATOR . date('m'); |
|
| 144 | + $path = Config::getParam('default.log.path', LOG_DIR).DIRECTORY_SEPARATOR.$logger.DIRECTORY_SEPARATOR.date('Y').DIRECTORY_SEPARATOR.date('m'); |
|
| 145 | 145 | GeneratorHelper::createDir($path); |
| 146 | 146 | return $path; |
| 147 | 147 | } |