title: How to store all user activites in a website..?
body: <p>I have a web application build in <code>Django</code> + <code>Python</code> that interact with web services (written in <strong>JAVA</strong>).</p>
  
  <p>Now all the <strong><em>database management</em></strong> part is done by web-services i.e. all <strong>CRUD</strong> operations to actual database is done by web-services.</p>
  
  <hr>
  
  <p>Now i have to <strong>track all User Activities</strong> done on my website in <strong>some log table</strong>.</p>
  
  <p>Like If User posted a new article, then a new row is created into <strong>Articles table</strong> by web-services and side by side, i need to add a new row into <strong>log table</strong> , something like "<em>User : Raman has posted a new article (with ID, title etc)</em>"</p>
  
  <p>I have to do this for all Objects in my database like "Article", "Media", "Comments" etc</p>
  
  <hr>
  
  <p><strong>Note : I am using PostgreSQL</strong></p>
  
  <hr>
  
  <p>So what is the <strong>best way</strong> to achieve this..?? (Should I do it in <strong>PostgreSQL</strong> OR <strong>JAVA</strong> ..??..And How..??)</p>