Allow loggin to a file

Hi!

Just added persistence to your logger library and allowed to "auto-flush" it when a new line is written to it. Check it out and tell me whatever you think.

Regards.