New Posts New Posts RSS Feed: Azure Deployemt
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Azure Deployemt

 Post Reply Post Reply
Author
steveprov View Drop Down
Newbie
Newbie


Joined: 11-Feb-2011
Posts: 3
Post Options Post Options   Quote steveprov Quote  Post ReplyReply Direct Link To This Post Topic: Azure Deployemt
    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?
Back to Top
smi-mark View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 24-Feb-2009
Location: Dallas, Texas
Posts: 343
Post Options Post Options   Quote smi-mark Quote  Post ReplyReply Direct Link To This Post 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
    }
  }

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down