public function __construct()
 {
     parent::__construct();
     $this->_window_id = PopupScreenLogger::$id_master++;
     $this->_window_open = FALSE;
     $this->_line = 0;
 }
 public function writeln(Charcoal_LogMessage $msg)
 {
     // フォーマット
     $out = parent::formatMessage($msg) . PHP_EOL;
     // エンコーディング変換
     $conv = Charcoal_EncodingConverter::fromString($this->getSandbox(), 'PHP', 'CLI');
     $out = $conv->convert($out);
     // 画面出力
     echo $out;
 }
 public function writeln(Charcoal_LogMessage $message)
 {
     // 接続処理
     $this->open();
     // フォーマット
     $out = parent::formatMessage($message) . us($this->line_end);
     $this->write($out);
     $this->close();
 }