original_string: public function rawLog(string $type = '', string $message = '', ?string $source = null, ?string $excp = null): bool
      {
          $src = $source !== null
              ? \sprintf('[%s] ', \is_object($source) ? '\\'.\get_class($source) : (string)$source)
              : '';
          $exc = $excp !== null && ($excp instanceof \Exception) ? \sprintf('[Ex: %s] ', $excp->getMessage()) : '';
          $exc = \str_replace(["\r", "\n", "\t"], '', $exc);
          $msg = \sprintf('%s %s %s%s%s%s', \date('d-m-Y H:i:s'), $type, $src, $exc, $message, Tags::CRLF);
  
          return File::append($this->logFile, $msg);
      }
code: public function rawLog(string $type = '', string $message = '', ?string $source = null, ?string $excp = null): bool
      {
          $src = $source !== null
              ? \sprintf('[%s] ', \is_object($source) ? '\\'.\get_class($source) : (string)$source)
              : '';
          $exc = $excp !== null && ($excp instanceof \Exception) ? \sprintf('[Ex: %s] ', $excp->getMessage()) : '';
          $exc = \str_replace(["\r", "\n", "\t"], '', $exc);
          $msg = \sprintf('%s %s %s%s%s%s', \date('d-m-Y H:i:s'), $type, $src, $exc, $message, Tags::CRLF);
  
          return File::append($this->logFile, $msg);
      }
code_tokens: public function rawLog ( string $ type = '' , string $ message = '' , ? string $ source = null , ? string $ excp = null ) : bool { $ src = $ source !== null ? \ sprintf ( '[%s] ' , \ is_object ( $ source ) ? '\\' . \ get_class ( $ source ) : ( string ) $ source ) : '' ; $ exc = $ excp !== null && ( $ excp instanceof \ Exception ) ? \ sprintf ( '[Ex: %s] ' , $ excp -> getMessage ( ) ) : '' ; $ exc = \ str_replace ( [ "\r" , "\n" , "\t" ] , '' , $ exc ) ; $ msg = \ sprintf ( '%s %s %s%s%s%s' , \ date ( 'd-m-Y H:i:s' ) , $ type , $ src , $ exc , $ message , Tags :: CRLF ) ; return File :: append ( $ this -> logFile , $ msg ) ; }
docstring: Logs message to file
  
  @param string      $type
  @param string      $message
  @param null|string $source
  @param null|string $excp
  @return bool
docstring_tokens: Logs message to file