writelog in c# sample