Log stuff to a file.

This is just for debug, do not even think in use this under a production
env.