Quick and dirty logger in Java/MongoDB