Azure and Built-In Logging
var logEntry = new LogEntry
Severity = TraceEventType.Error,
Message = "Manual Log"
;
Log.Write(logEntry, ConfigurationPolicy.ErrorLog);
Doesn't work, nor does it seem to log unhandled (in code) exceptions. Your system, which seems to be based on the Enterprise library, fails in the Azure environment for me. I was wondering if there was any feedback I could get on this matter.
Using elmah, and not integrating with Sitefinity according to your documentation, I am able to get some sort of error handling,.
Hi Merritt,
Please note that by default Sitefinity logs the errors in ~\App_Data\Sitefiniy\Logs folder. However, when deployed on Azure the logs are written in the Azure Storage.
Please refer to the below article for more details on how you can access and download the log files using the "Azure Storage Explorer" tool:
How to get the error log from Sitefinity deployment to Azure
Regards,
Sabrie Nedzhip
Telerik
That doesn't actually work. For instance, if you get a controller error ("Error in controller, see log for details"), it isn't written to the log. You can't even try/catch whatever that exception is. Just, nothing.
Hello Andrew,
I have just replied in the forum thread you have opened related to this:
http://www.sitefinity.com/developer-network/forums/developing-with-sitefinity-/azure-error-logs---error-in-controller-see-log-for-details
Regards,
Sabrie Nedzhip
Telerik