发布于 2013-07-16 15:07:53
查看myapp/elmah页面底部的“此日志由.提供”查看您使用的日志记录类型。如果它在内存中,就没有物理文件。否则,文件的位置由logPath在web.config中指定,例如.
<elmah>
<errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~\App_Data\" />
</elmah>编辑
我不想仅仅替换原来的代码片段,因为它可能对某些人有用;对我来说,它没有,实际上,我不得不像这样修改logPath:
<elmah>
<errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data" />
</elmah>发布于 2017-10-19 16:58:19
<configSections>
<sectionGroup name="elmah">
<section name="errorLog" type="Elmah.ErrorLogSectionHandler, Elmah" />
</sectionGroup>
</configSections>
<elmah>
<errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="\\Mydocs\Logs" />
</elmah>https://stackoverflow.com/questions/17679141
复制相似问题