public function _generateLine($string, $start=5) {
    if($this->options['trace']['enabled']) {
      $trace = $this->_stackString($this->options['trace']['depth'], $start+$this->options['trace']['offset'], $this->options['separator']);
    } else {
      $trace = "";
    }

    $result = "";

    if($this->options['timestamp']['enabled']) {
      $result .= date('c').' ';
    }

    $result .= implode($this->options['separator'],array_filter(array($trace,$string)));

    if($this->options['banner']['enabled']) {
      $result = $this->_generateBanner($result);
    }

    return $result;
  }
public function _generateLine($string, $start=5) {
    if($this->options['trace']['enabled']) {
      $trace = $this->_stackString($this->options['trace']['depth'], $start+$this->options['trace']['offset'], $this->options['separator']);
    } else {
      $trace = "";
    }

    $result = "";

    if($this->options['timestamp']['enabled']) {
      $result .= date('c').' ';
    }

    $result .= implode($this->options['separator'],array_filter(array($trace,$string)));

    if($this->options['banner']['enabled']) {
      $result = $this->_generateBanner($result);
    }

    return $result;
  }
public function _generateLine ( $ string , $ start = 5 ) { if ( $ this -> options [ 'trace' ] [ 'enabled' ] ) { $ trace = $ this -> _stackString ( $ this -> options [ 'trace' ] [ 'depth' ] , $ start + $ this -> options [ 'trace' ] [ 'offset' ] , $ this -> options [ 'separator' ] ) ; } else { $ trace = "" ; } $ result = "" ; if ( $ this -> options [ 'timestamp' ] [ 'enabled' ] ) { $ result .= date ( 'c' ) . ' ' ; } $ result .= implode ( $ this -> options [ 'separator' ] , array_filter ( array ( $ trace , $ string ) ) ) ; if ( $ this -> options [ 'banner' ] [ 'enabled' ] ) { $ result = $ this -> _generateBanner ( $ result ) ; } return $ result ; }
Common method for generating the main logging line.
Common method for generating the main logging line .