<?php
namespace Craft;

class AuditLogVariable {

    public function log() 
    {
    
        return craft()->auditLog->log();
    
    }
    
    public function view($id)
    {
    
        return craft()->auditLog->view($id);
    
    }
    
}
<?php
namespace Craft;

class AuditLogVariable {

    public function log($criteria) 
    {
    
        return craft()->auditLog->log((object)$criteria);
    
    }
    
    public function view($id)
    {
    
        return craft()->auditLog->view($id);
    
    }
    
}
Allow criteria via log variable
Allow criteria via log variable
