API - Basic API calls

I could provide a default value. `function log_request($log = array()) {`
That way, it would not raise any error but enter an empty string into the database.