Does anyone know how to configure Elamh for an Azure worker role? I've installed it but it doesn't seem to do anything - when exceptions occur they don't get logged. It works perfectly in my MVC project.

Is there any specific guidance for Azure worker role with Elamh?

有帮助吗?

解决方案

Azure Worker Roles have IIS disabled by default which means you can't use ELMAH. You might have to try a more traditional logging approach.

On my most recent project, we decided to have our Worker Roles log to table storage and it works really well. However, there have been some recent advancements since we first started that make logging much easier.

For more information, check out Take Control of Logging and Tracing in Windows Azure

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top