+1-888-365-2779
Try Now
More in this section

Forums / Deployment / Azure and Built-In Logging

Azure and Built-In Logging

4 posts, 0 answered
  1. Merritt
    Merritt avatar
    31 posts
    Registered:
    11 Mar 2011
    02 Jul 2015
    Link to this post
    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,.

  2. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    Registered:
    30 Sep 2016
    06 Jul 2015
    Link to this post
    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
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Andrew
    Andrew avatar
    8 posts
    Registered:
    02 Mar 2016
    23 Mar
    Link to this post
    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.
  4. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    Registered:
    30 Sep 2016
    28 Mar
    Link to this post
    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
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
4 posts, 0 answered