4

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?

4

1 に答える 1

6

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

于 2013-03-11T14:34:19.067 に答える