Exemplo n.º 1
0
 public function write($message)
 {
     $this->log('<<< ' . phutil_loggable_string($message));
     return parent::write($message);
 }
Exemplo n.º 2
0
 public function testLoggableString()
 {
     $this->assertEqual('', phutil_loggable_string(''));
     $this->assertEqual("a\\nb", phutil_loggable_string("a\nb"));
     $this->assertEqual("a\\x01b", phutil_loggable_string("ab"));
     $this->assertEqual("a\\x1Fb", phutil_loggable_string("ab"));
 }