thorpedosg

ff9HY7aW

Aug 6th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. internal+static+void+LocalLog%28Exception+trace%29%0A%7B%0A++++try%0A++++%7B%0A++++++++string+InfoText+%3D+string.Empty%3B%0A++++++++if+%28trace+%21%3D+null%29%0A++++++++%7B%0A++++++++++++InfoText+%2B%3D+Environment.NewLine+%2B+Newtonsoft.Json.JsonConvert.SerializeObject%28trace%2C+Newtonsoft.Json.Formatting.Indented%29%0A++++++++++++%2B+Environment.NewLine%3B%0A++++++++%7D%0A%0A%0A++++++++var+path+%3D+Environment.GetFolderPath%28Environment.SpecialFolder.CommonApplicationData%29+%2B+%22%5C%5C%22%3B%0A++++++++if+%28%21Directory.Exists%28path%29%29%0A++++++++++++Directory.CreateDirectory%28path%29%3B%0A%0A++++++++var+logfile+%3D+path+%2B+%22%5C%5C%22+%2B+DateTime.Now.Year+%2B+%22.%22+%2B+DateTime.Now.Month+%2B+%22.%22+%2B+DateTime.Now.Day+%2B+%22+WSRecaudoTercero.log%22%3B%0A++++++++File.AppendAllText%28logfile%2C+DateTime.Now+%2B+%22+-+%22+%2B+Environment.NewLine+%2B+InfoText+%2B+Environment.NewLine+%2B+Environment.NewLine%29%3B%0A++++%7D%0A++++catch%0A++++%7B%0A++++++++%2F%2Fasdf%0A++++%7D%0A%7D
Add Comment
Please, Sign In to add comment