title: Secure logging in java
body: <p>I'd like to have secure logging in my application, so that:</p>
  
  <ul>
  <li>if I log something, the logging function should return happily if and only if the loggging was successful</li>
  <li>the logfile should not be manipulated easily, so I should easily spot if someone
  <ul>
  <li>deletes from the logfile</li>
  <li>alters the logfile</li>
  <li>creates new entries to the logfile</li>
  </ul></li>
  </ul>
  
  <p>So something, which reliably logs to a file with <a href="http://en.wikipedia.org/wiki/PKCS" rel="nofollow" title="public-key cryptography standards">PKCS</a> should suffice.</p>
  
  <p>Is there a library which suit my needs, or should I write one from scratch?</p>
  
  <p><strong>EDIT</strong>
  Application is on server.</p>