debug() public method

Method to add a DEBUG log entry
public debug ( mixed $message, array $options = [] ) : Logger
$message mixed
$options array
return Logger
コード例 #1
0
ファイル: LogTest.php プロジェクト: nicksagona/PopPHP
 public function testWriterDb()
 {
     $w = new Db(new Logs());
     $this->assertInstanceOf('Pop\\Log\\Writer\\Db', $w);
     $l = new Logger($w);
     $l->debug('Test log message');
     $entries = Logs::findAll();
     $this->assertEquals(1, count($entries->rows));
     foreach ($entries->rows as $row) {
         $e = Logs::findById($row->id);
         if (isset($e->id)) {
             $e->delete();
         }
     }
 }