/**
  * Transforms the given 'msg' to text.
  * Adds a type-specific style to the output string.
  * @param string $msg
  * @return string
  * @access private
  */
 protected function _prepare($msg)
 {
     $Result = parent::_prepare($msg);
     $Result = str_replace("\\", "\\\\", $Result);
     $Result = str_replace('"', '\\"', $Result);
     $Result = str_replace("'", "\\'", $Result);
     $Result = str_replace("\n", '\\n', $Result);
     $Result = str_replace("\r", '\\n', $Result);
     return $Result;
 }
Exemplo n.º 2
0
 /**
  * Initialize the on-screen logger by passing {@link ENVIRONMENT::is_http_server()} 
  * to {@link set_is_html()}.
  * @param ENVIRONMENT $env
  */
 public function __construct($env)
 {
     parent::__construct();
     $this->set_is_html($env->is_http_server());
 }