문제

In the Elmah error log page it shows server variables. However, while it is nice to have this extra info I'd like to turn this off as it displays authorization tokens which are sensitive. Is there way to configure Elmah to turn this feature off so they aren't displayed?

도움이 되었습니까?

해결책

I think the only way to do this will be to create a custom Log viewer. From the Elmah Project Home Page:

Use ErrorLogDataSourceAdapter together with ObjectDataSource from ASP.NET to create your own custom views of the error log, almost purely in server-side markup and without a line of code!

Also, have you considered just restricting access to viewing the Elmah logs? See Securing Error Log Pages for more details.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top