Added file output policy for logs.

I also tried to set the logger thread priority but pthread_win32 only
support one scheduling policing. Time for an os specific thread wrapper?