Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
34 | public function __construct(ContainerInterface $options = null){ |
||
35 | parent::__construct($options); |
||
36 | |||
37 | if(!is_writable($this->options->logfileDir)){ |
||
38 | throw new LogException('log file directory inaccessible'); |
||
39 | } |
||
40 | |||
41 | $logfile = $this->options->logfileDir.'/'.$this->options->logfileName.'-'.date('Y-m-d').'.'.$this->options->logfileExt; |
||
42 | |||
43 | $this->fh = fopen($logfile, 'a+'); |
||
44 | } |
||
73 |