Log   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 6
lcom 0
cbo 4

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A log() 0 1 1
A debug() 0 1 1
A warn() 0 1 1
A info() 0 1 1
A error() 0 1 1
1
<?php 
2
namespace PHP;
3
4
class Log {
5
6
  private static $oInstance;
7
8
  private $oLogger; 
9
10
  private function __construct() {
11
12
    $this->oLogger = new \Monolog\Logger("PHPUtils");
13
    $this->oLogger->pushHandler( new \Monolog\Handler\StreamHandler("/tmp/PHPUtils.log") );
14
    $this->oLogger->pushHandler( new \Monolog\Handler\ChromePHPHandler() );
15
    $this->oLogger->pushHandler( new \Monolog\Handler\FirePHPHandler() );
16
  }
17
18
  public function log() {}
19
20
  public function debug() { }
21
22
  public function warn() { }
23
24
  public function info() { }
25
26
  public function error() {  }
27
28
}
29