I lied... worked a little more.

Log to file function works.