Simple way to perform error logging?

后端 未结 9 1670
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-30 03:52

I\'ve created a small C# winforms application, as an added feature I was considering adding some form of error logging into it. Anyone have any suggestions for good ways to go a

9条回答
  •  悲哀的现实
    2021-01-30 04:27

    You just write out your exception errors to a text file. Write to Text File. One suggestion is to put the file you create in a userdata or appdata directory though, so you do not have to struggle with permissions.

    Since this is only needed for a few months and will be discarded there is no reason to go overboard with DB. A simple text file should suffice.

提交回复
热议问题