Why is the date appended twice on filenames when using Log4Net?

前端 未结 6 584
北荒
北荒 2021-02-01 18:52

I was trying to add the date to my log file name and I was able to make it work by following the few suggestions I\'ve found in stackoverflow. Everything works fine but for some

6条回答
  •  一生所求
    2021-02-01 19:23

    As olle pointed out. your problem is related to the '\g', which your log4net is interpreting as another dateformat. Try deleting the ".yyyy-MM-dd.lo\g" and replacing it with "yyyy-MM-dd"

    The ".log" doesn't belong in the dateformat

提交回复
热议问题