Ejemplo n.º 1
0
Archivo: Log.php Proyecto: techart/tao
 /**
  * @return Log_FileHandler
  */
 public function init()
 {
     if (!IO_FS::exists($dir = IO_FS::File($this->path)->dir_name)) {
         IO_FS::mkdir($dir, null, true);
     }
     $this->stream = IO_FS::FileStream($this->path, 'a');
     return $this;
 }
Ejemplo n.º 2
0
 public function __construct($filename)
 {
     $this->stream = IO_FS::FileStream($filename, 'w');
     $this->buf = '';
 }