Print Page | Close Window

Azure Deployemt

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2504
Printed Date: 25-Mar-2025 at 5:17am


Topic: Azure Deployemt
Posted By: steveprov
Subject: Azure Deployemt
Date Posted: 11-Feb-2011 at 2:31pm
I have deployed a Silverlight application to Azure and while the EntityManager can Read ok I cannot Save. I would like to look at the DebugLog.xml but on Azure I cannot control write access to the web root and cannot redirect  to configured local storage.

Is there a way to get control of the logging so I can redirect it to Azure Storage?



Replies:
Posted By: smi-mark
Date Posted: 12-Feb-2011 at 7:47am
Yes, DevForce allows overriding the logging using the ITraceLogger interface.

 public class AzureLoggerProvider : ITraceLoggerProvider {

    public ITraceLogger GetLogger() {
      return new AzureLogger();
    }
  }

  public class AzureLogger : ITraceLogger {

    public bool IsSingleThreaded {
      get { return false; }
    }

    public void Log(object message) {
      //Code goes here to log to Azure Storage
    }
  }




Print Page | Close Window