Frage

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?

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top