Update log.cs

Added Flush() method