How to get all audit entries present in alfresco db
I want to get all the audit entries present in alfresco DB through java code. I have read all the interface provided for audit and doesnt find any method for extracting it .There is a method for auditquery but i am not getting much from it.
So could anyone provide me how can i get all the audit entries which we get similar in API explorer by providing application ID.
Also, is it possible to write this audit entries in simple text file.