public function log($message, $type = 'ok', $indent = 0) {
        $log = new stdClass();
        $log->message = $message;
        $log->type = $type;
        $log->indent = $indent;

        $this->logs[] = $log;
    }
public function log($message, $type = 'ok', $indent = 0) {
        $log = new stdClass();
        $log->message = $message;
        $log->type = $type;
        $log->indent = $indent;

        $this->logs[] = $log;
    }
public function log ( $ message , $ type = 'ok' , $ indent = 0 ) { $ log = new stdClass ( ) ; $ log -> message = $ message ; $ log -> type = $ type ; $ log -> indent = $ indent ; $ this -> logs [ ] = $ log ; }
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)
Appends a new message to the log