original_string: public function log($message, $type = 'ok', $indent = 0) {
          $log = new stdClass();
          $log->message = $message;
          $log->type = $type;
          $log->indent = $indent;
  
          $this->logs[] = $log;
      }
code: public function log($message, $type = 'ok', $indent = 0) {
          $log = new stdClass();
          $log->message = $message;
          $log->type = $type;
          $log->indent = $indent;
  
          $this->logs[] = $log;
      }
code_tokens: public function log ( $ message , $ type = 'ok' , $ indent = 0 ) { $ log = new stdClass ( ) ; $ log -> message = $ message ; $ log -> type = $ type ; $ log -> indent = $ indent ; $ this -> logs [ ] = $ log ; }
docstring: Appends a new message to the log
  
  The available levels are
  ok - success, eg. new allocation was created
  info - informational message
  error - error message, eg. no more peers available
  debug - debugging info
  
  @param string $message message text to display
  @param string $type the type of the message
  @param int $indent eventual indentation level (the message is related to the previous one with the lower indent)
docstring_tokens: Appends a new message to the log