Updated Log.cs

Note: IOException in method, needs to be solved.