سؤال

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