.svclog file is not creating on cloud when cloud service is deployed into azure website.

I have created a wcf cloud service which is being deployed on cloud through bitbucket repository.
I want to create a .svclog file to trace logs on my azure local storage.
For that, I have refered so many posts and finally configured my solution as below:
ServiceConfiguration.Cloud.cscfg:
<Role name="MyServiceWebRole">    <Instances count="1" />    <ConfigurationSettings>      <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString"                value="DefaultEndpointsProtocol=https;AccountName=StorageName;AccountKey=MyStorageKey" />    </ConfigurationSettings>    <Certificates>      <Certificate name="Certificate" thumbprint="certificatethumbprint" thumbprintAlgorithm="sha1" />    </Certificates>  </Role>
ServiceConfiguration.Local.cscfg:
<Role name="MyServiceWebRole">
    <Instances count="1" />    <ConfigurationSettings>      <!--Also tried with value = "UseDevelopmentStorage=true"-->      <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString"               value="DefaultEndpointsProtocol=https;AccountName=StorageName;AccountKey=MyStorageKey" />    </ConfigurationSettings>    <Certificates>      <Certificate name="Certificate" thumbprint="certificatethumbprint" thumbprintAlgorithm="sha1" />    </Certificates>  </Role>
ServiceDefinition.csdef:
<WebRole name="MyServiceWebRole" vmsize="Small">    <Sites>      <Site name="Web">        <Bindings>          <Binding name="Endpoint1" endpointName="Endpoint1" />        </Bindings>      </Site>    </Sites>    <Endpoints>      <InputEndpoint name="Endpoint1" protocol="http" port="80" />    </Endpoints>    <Imports>      <Import moduleName="Diagnostics" />    </Imports>    <LocalResources>      <LocalStorage name="MyServiceWebRole.svclog" sizeInMB="1000" cleanOnRoleRecycle="false" />    </LocalResources>    <Certificates>      <Certificate name="Certificate" storeLocation="LocalMachine" storeName="My" />    </Certificates>  </WebRole>
web.config (MyServiceWebRole project):
<system.diagnostics>    <trace autoflush="false">      <listeners>        <add name="AzureDiagnostics"             type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics,              Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />      </listeners>    </trace>  </system.diagnostics>  ............<system.serviceModel>    <diagnostics>      <messageLogging maxMessagesToLog="3000"                      logEntireMessage="true"                      logMessagesAtServiceLevel="true"                      logMalformedMessages="true"                      logMessagesAtTransportLevel="true" />    </diagnostics>   ............ <runtime>    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">      <dependentAssembly>        <assemblyIdentity name="Microsoft.WindowsAzure.Diagnostics" publicKeyToken="31bf3856ad364e35" culture="neutral" />        <!--<bindingRedirect oldVersion="0.0.0.0-1.8.0.0" newVersion="2.2.0.0" />-->      </dependentAssembly>    </assemblyBinding>  </runtime>
WebRole.cs (MyServiceWebRole project):
       public override bool OnStart()        {            //Trace.Listeners.Add(new DiagnosticMonitorTraceListener());            Trace.Listeners.Add(new AzureLocalStorageTraceListener());            Trace.AutoFlush = false;            Trace.TraceInformation("Information");            Trace.TraceError("Error");            Trace.TraceWarning("Warning");            TimeSpan tsOneMinute = TimeSpan.FromMinutes(1);            // To enable the AzureLocalStorageTraceListner, uncomment relevent section in the web.config            DiagnosticMonitorConfiguration diagnosticConfig = DiagnosticMonitor.GetDefaultInitialConfiguration();            // Transfer logs to storage every minute            diagnosticConfig.Logs.ScheduledTransferPeriod = tsOneMinute;            // Transfer verbose, critical, etc. logs            diagnosticConfig.Logs.ScheduledTransferLogLevelFilter = LogLevel.Verbose;            // Start up the diagnostic manager with the given configuration            DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString", diagnosticConfig);            // For information on handling configuration changes            // see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357.            return base.OnStart();        }
AzureLocalStorageTraceListener.cs (MyServiceWebRole project):
public class AzureLocalStorageTraceListener : XmlWriterTraceListener    {        public AzureLocalStorageTraceListener() : base(Path.Combine(GetLogDirectory().Path, "MyServiceWebRole.svclog"))        {        }        public static DirectoryConfiguration GetLogDirectory()        {            try            {                DirectoryConfiguration directory = new DirectoryConfiguration();                // SHOULD I HAVE THIS CONTAINER ALREADY EXIST IN MY LOCAL STORAGE?                directory.Container = "wad-tracefiles";                directory.DirectoryQuotaInMB = 10;                directory.Path = RoleEnvironment.GetLocalResource("MyServiceWebRole.svclog").RootPath;                var val = RoleEnvironment.GetConfigurationSettingValue("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString");                return directory;            }            catch (ConfigurationErrorsException ex)            {                throw ex;            }        }    }
I also tried to comment out element in ServiceDefinition.csdef file. but here, I am having build time error (The XML specification is not valid).
In my case, I am pushing all source code to bitbucket repository and from there it is deployed to the azure "WebSite". Here is more details:
I need help to know:
Why my service did not creating .svclog file from local to azure?
It's also not doing the same even it has been deployed to azure?
On which location(container) I can get the .svclog file into local storage?
Please suggest correct way or modification so that I can overcome with this issue. Please replay fast.
Thanks.

Hello _Adian,
Thanks for response.
I uploaded all my code on bitbucket repository and configured a website on portal using "Integrate source control" (please refer:  http://azure.microsoft.com/en-in/documentation/articles/web-sites-publish-source-control/).
(NOTE: This is the way my client is following.)
Here is the structure of my solution:
1. a wcf service application (.svc)
2. few class library projects
3. Azure cloud service (with Project 1 as web role).
Now whenever I push my updated code to bitbucket, It automatically deployed to azure.
So, please suggest me how can I create a separate .svclog file into local storage (using above environment).
I hope this info will helpful to you for answer.

Similar Messages

  • I have a problem. When exporting from PDF to PPTX error "unable to process the document in the module Save As file is not created." What to do?

    I have a problem. When exporting from PDF to PPTX error "unable to process the document in the module Save As file is not created." What to do?
    Windows 7 64
    PC

    everything works on a laptop (

  • PDF file is not created properly when I choose File- Print...- PDF-- Save as PDF

    PDF file is not created properly when I choose File->Print...In dialogue box if i select option Save as PDF under PDF button...But it works fine with Safari Browser..
    == This happened ==
    Every time Firefox opened
    == always

    My first thought is to make sure the fonts used are common. If there is a substitution, things will be off.

  • RW-00023: Error:  DBC file was not created- When try to install 11i on OEL5

    I got an erorr in the appl-top log file as below, also my installation wizard showing post installation checks did not succeed. Please advice.....:-)
    DBC File Check
    RW-00023: Error: - DBC file was not created:
    File = /d01/oracle/visappl/fnd/11.5.0/secure/VIS_oracleapp1/vis.dbc
    HTTP Check
    checking URL = http://oracleapp1.srini.co.uk:8000
    RW-50015: Error: - Portal is not responding. The service might not have started on the port yet. Please check the service and use the retry button.
    RW-50015: Error: - Portal is not responding. The service might not have started on the port yet. Please check the service and use the retry button.
    JSP Check
    checking URL = http://oracleapp1.srini.co.uk:8000/OA_HTML/jsp/fnd/fndhelp.jsp?dbc=/d01/oracle/visappl/fnd/11.5.0/secure/VIS_oracleapp1/vis.dbc
    RW-50015: Error: - JSP is not responding. The service might not have started on the port yet. Please check the service and use the retry button.
    PHP Check
    checking URL = http://oracleapp1.srini.co.uk:8000/OA_HTML/US/ICXINDEX.htm
    RW-50015: Error: - Login Page is not responding. The service might not have started on the port yet. Please check the service and use the retry button.
    JSP Check
    checking URL = http://oracleapp1.srini.co.uk:8000/OA_HTML/jsp/fnd/fndhelp.jsp?dbc=/d01/oracle/visappl/fnd/11.5.0/secure/VIS_oracleapp1/vis.dbc
    RW-50015: Error: - JSP is not responding. The service might not have started on the port yet. Please check the service and use the retry button.
    PHP Check
    checking URL = http://oracleapp1.srini.co.uk:8000/OA_HTML/US/ICXINDEX.htm
    RW-50015: Error: - Login Page is not responding. The service might not have started on the port yet. Please check the service and use the retry button.

    Hi JD,
    I am able to fix this issue.....:-) Thanks for your help JD.
    As per the Metalink note 747424.1, i replaced all occurances of LD_ASSUME_KERNEL with XD_ASSUME_KERNEL only in DB-tier, but not in the Apps tier. So this was causing the
    above issue in the instalation of oracle 11i on OEL5
    --Once again i alter and replaced all occurances of LD_ASSUME_KERNEL with XD_ASSUME_KERNEL in both the files....
    (db tier)
    <DB_HOME>/appsutil/bin/adgetlnxver.sh (did it earlier)
    (apps tier)
    <APPL_TOP>/ad/11.5.0/bin/adgetlnxver.sh
    --run  the autoconfig in apps tier with completed successfully result (and also generated the  DBC files)
    --run the adstrtal.sh and retry the rapidwiz once more. ( Oracle Discoverer services VIS_oracleapp1 - addisctl.sh - this one is Failed)
    --This time everything checked OK in the instalation wizard.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Getting error message "Could not create work area" when I open Bridge CC.

    I am getting an error message "Could not create work area" when I open Bridge CC.
    I have reset my workspace. I have closed and opened Bridge CC. I have deleted the !!-$$$AdobeOutputModule.workspace file in /Library/Application Support/Adobe/Bridge CC/Workspaces folder.
    I am not an expert computer user, so please explain in detailed steps like I am 5 years old. Thanks in advance for any help.

    I am experiencing the same problem!
    My mac is OS X Yosemite (10.10.1), Photoshop CC 2014.2.1, Bridge CC 6.1.0.115 and Camera Raw 8.7.0.309

  • Mod_jk.conf file is NOT created

    Hi Experts,
    I am using Apache(2.0.40), JBOSS(3.0.3) and Tomcat(4.0.4) on IBM AIX 5.1 System.
    After spending 1 week on Integrating Apache and Tomcat on IBM AIX System (and getting HELP from you guys from Mailing List), I finally builded "mod_jk.so" file for this platform.
    I also configured Tomcat's "server.xml" and "workers.properties" file BUT when I start my JBOSS engine, "mod_jk.conf" file is NOT created automatically. I refereed the following document to configure that:
    http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html
    Do you experts have any suggestion/information as to why "mod_jk.conf" file is not created automatically? The above document says the file is CREATED AUTOMATICALLY once you start Tomcat!
    Any related information on this would be appreciated.
    THANKS!
    Manoj G. Kithany
    [email protected]

    thanks, I have since figured this one out...
    What I cant seem to do is get Apache to use Tomcat to serve any jsp's.
    I have spent the last three days working with this and have gotten no where. I am rather frazzled and am about to abandon the thought of using anything Java for a long time.
    Let me spell out what I have done for you:
    #========================================================
    C:\Java\Apache\Tomcat_4.1\conf\auto\mod_jk.conf
    #========================================================
    ########## Auto generated on Fri Sep 13 18:46:55 EDT 2002##########
    <VirtualHost localhost>
        ServerName localhost
        JkMount /manager ajp13
        JkMount /manager/* ajp13
        JkMount /examples ajp13
        JkMount /examples/* ajp13
        JkMount /tomcat-docs ajp13
        JkMount /tomcat-docs/* ajp13
        JkMount /webdav ajp13
        JkMount /webdav/* ajp13
        JkMount /admin ajp13
        JkMount /admin/* ajp13
    </VirtualHost>#========================================================
    C:\Java\Apache\Tomcat_4.1\conf\jk\workers.properties
    #========================================================
    # Start setup file
    #==========================================================
    workers.tomcat_home=C:/Java/Apache/Tomcat_4.1
    workers.java_home=C:/Java/j2sdk1.4.0
    ps=/
    worker.list=MyWorker
    #==========================================================
    # Definition for MyWorker worker
    #==========================================================
    worker.MyWorker.port=8009
    worker.MyWorker.host=192.168.0.2
    worker.MyWorker.type=ajp13
    worker.MyWorker.class_path=C:/Java/Apache/Tomcat_4.1/bin
    worker.MyWorker.class_path=C:/Java/Apache/Tomcat_4.1/common/lib
    worker.MyWorker.class_path=C:/Java/Apache/Tomcat_4.1/server/lib
    worker.MyWorker.class_path=C:/Java/j2sdk1.4.0/lib/tools.jar
    #==========================================================
    # End setup file#==========================================================
    C:\Java\Apache\Apache2\conf\httpd.conf
    #==========================================================
    about line# 212:
    ServerName 192.168.0.2  # my internal ipat bottom of file:
    LoadModule jk_module "C:/Java/Apache/Tomcat_4.1/module/mod_jk.dll"
    Include C:/Java/Apache/Tomcat_4.1/conf/auto/mod_jk.conf
    JkWorkersFile "C:/Java/Apache/Tomcat_4.1/conf/jk/workers.properties"
    JkLogFile "C:/Java/Apache/Tomcat_4.1/logs/mod_jk.log"
    JkLogLevel emerg
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    JkMount /examples/*.jsp MyWorker
    JkMount /examples/jsp/* MyWorkerWhen I put this URL in my browser:
    http://192.168.0.2/examples/jsp/
    I get a 404 error...
    Apache keeps trying to serve the *.jsp's and it fails every time it trys to do so. I know this b/c the Tomcat logs are virtually empty while the Apache logs keep being added to like so:
    192.168.0.2 - - [14/Sep/2002:19:04:57 - 0400] "GET /examples/jsp/snp/snoop.jsp HTTP/1.1" 404 294
    Can anybody help me figure out how to configure Tomcat4.1 with Apache 2.0?

  • Backups of the JVM.CONFIG file are not created

    Backups of the JVM.CONFIG file are not created.
    CF10 > Server Settings > Java and JVM   in part says:
    Backups of the jvm.config file are created when you hit the submit button. You can use this backup to restore from a critical change.
    CF10 Help page indicates jvm.bak will be created:
    http://help.adobe.com/en_US/ColdFusion/10.0/Admin/WSc3ff6d0ea77859461172e0811cbf3638e6-7ff c.html#WSc3ff6d0ea77859461172e0811cbf3638e6-7feb
    Note Help indicates incorrectly JVM.CONFIG and BAK are in cf_root\runtime\bin where as JVM.CONFIG is located cf_root\instance\bin .
    Thanks in advance, Carl.

    I must have not had enough coffee - JVM.BAK is created in where JVM.CONFIG is found. Pardon me.

  • Jar file: log file is not created!

    Hi, I create a log file with these instructions:
    //logger
              FileHandler fh = new FileHandler(LOG_FILE,true); //append mode
              fh.setFormatter(new SimpleFormatter());
              logger = Logger.getLogger(this.getClass().getName());
              logger.addHandler(fh);It works well as long I execute it normally, but when I create a .jar file and put this logger class inside logger file is not created..how come?

    Hi, I create a log file with these instructions:The code extract creates a Logger object, sure, but does that mean it creates a log file? The log file creation could be deferred until the first usage of the logger...
    It works well as long I execute it normally,Let's clarify: do you mean, when executing from your IDE, or when executing via a command line?
    but when I create a .jar file and put this logger class inside logger file is not created..how come?Let's clarify: do you mean, when you execute the same code packaged in a jar file?
    The most likely issue is configuration: apparently the various ways in which you run your program use different logging configurations.
    J.

  • I am having problems with creating my apple id. On the phone it is advising me that the ID is not created and then when i do it online it says that it has been created. Can you advise me on what to do please?

    I am having problems with creating my apple id. On the phone it is advising me that the ID is not created and then when i do it online it says that it has been created. Can you advise me on what to do please?

    Apple ID FAQ   http://support.apple.com/kb/HE37

  • Log file is not created used util.logger

    I need to write a log into a file using java.util.logging.
    File name should read from properties file.
    Issue is file is not created in D:\TestLogging.log
    Below are the configuration:
    src\resources\logger.properties
    handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler
    .level=INFO
    java.util.logging.ConsoleHandler.level=SEVERE
    java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
    java.util.logging.FileHandler.level=ALL
    java.util.logging.FileHandler.pattern=D:\TestLogging.log
    # Number of output files to cycle through, by appending an
    # integer to the base file name:
    java.util.logging.FileHandler.count=1
    # Style of output (Simple or XML):
    java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter
    SimpleLogger.java
    import java.util.logging.*;
    public final class SimpleLogger {
      public static void main(String argv[]) {
      SimpleLogger thing = new SimpleLogger();
      thing.doSomething();
      public void doSomething() {
      fLogger.finest("this is finest");
      fLogger.finer("this is finer");
      fLogger.fine("this is fine");
      fLogger.config("this is config");
      fLogger.info("this is info");
      fLogger.warning("this is a warning");
      fLogger.severe("this is severe");
      fLogger.logp(Level.INFO, this.getClass().toString(), "doSomething", "blah");
      Throwable ex = new IllegalArgumentException("Some exception text");
      fLogger.log(Level.SEVERE, "Some message", ex);
      fLogger.exiting(this.getClass().toString(), "doSomething");
      private static final Logger fLogger =
      Logger.getLogger(SimpleLogger.class.getName());
    Could you please help, any configuration is missed

    Malar,
    Check for the file in the server folder of your server installed directory.
    ie..<Drive where server installed>:\usr\sap\<name>\<instance>\j2ee\<server node>
    Regards
    Abu Bakar

  • System should not creates new version when value of PO increased..

    Hi Experts,
    Need your help to solve this problem. When i increase value of PO it should retrigger Release strategy but it creates version first, then i have to tick completion indicator and check then only release strategy retriggers..
    It should not create new version when change po
    Please check below screenshot
    Please help

    Hi
    Please reveiw the following points in note
       - 493900 FAQ: Release Strategy
          4.  Why is the release strategy not determined?
         "If you use version management, the determination of the release
          strategy starts when the version is completed.
          You complete a version by setting the "version completed"
          indicator in the version tab."
       - 662993 Resetting an already occurred release
         You edit a purchasing document with release strategy.
         You change the quantity or the price. In spite of that, the
         already set release is not reset.
    The release strategy works the same with or without version management
    active - the only difference in case - version management is active -
    is that if release is to be reset, it will be reset only on version
    I hope this helsp to clarify this issue
    Kind regards,
    Lorraine

  • Log file is not created using LOG4J

    Hi all,
    I want to use Log4j to log the details about my portal application. I would prefer using Log4j instead of SAP Logging. I have created properties file in my portal application which extends Abstract Portal Component. This my Log4j.properties file which i created under dist\PORTAL-INF\classses folder. I could read the Properties file. There is no problem on that. I am able to refer the API s available in Log4j. I am using Log4j-1[1].2.14.jar.
    log4j.rootLogger = INFO, R1
    log4j.appender.R1 = org.apache.log4j.RollingFileAppender
    log4j.appender.R1.File = LoggerForMyApplicationC.log
    log4j.appender.R1.MaxFileSize=100KB
    log4j.appender.R1.MaxBackupIndex=1
    log4j.appender.R1.layout=org.apache.log4j.PatternLayout
    log4j.appender.R1.layout.ConversionPattern=[%-5p] [%d] [%c] - [%m]%n
    But the problem is Log file is not created (LoggerForMyApplicationC.log) under \logs foler in SAP J2EE Server.
    Do i miss any other configuration? Please bring me the solution.
    Thanks,
    Malar

    Malar,
    Check for the file in the server folder of your server installed directory.
    ie..<Drive where server installed>:\usr\sap\<name>\<instance>\j2ee\<server node>
    Regards
    Abu Bakar

  • File to file secnario output file is not created.

    Hi,
    while creating the file to file secnario, file is picked by xi server and shown to sxmb_moni but output file is not created.
    Please help.

    HI
    Go to RWB->Message Monitoring->Message Display Tool(MDT)->Audit Log and check the status..
    Go to SMQ2 and check is there any queue is pending in the Queue..
    If so try to activate it. For this you can refer this blog-
    XI :  How to Re-Process failed XI Messages Automatically
    If not-then check the configuration again-
    1) Check the Receiver Communication channel for the FTP URL/File creation mode etc
    2) Are you able to see the mapped data in SXMB_MONI..
    3) Reciever Agreement/Reciever Determiation/Interface Determination
    Check if you have given a Write Access to the folder in which the file is to be placed
    Thanks
    Gaurav

  • Keyboard plugs into the back of my display does not work? but when I plug the keyboard into my MacBook Pro it works fine? is it my display Monitor?

    My keyboard plugs into the back of my display monitor it does not work? but when I plug the keyboard into my MacBook Pro it works fine? is it my display Monitor?

    Try:
    - Resetting the iPod:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Resetting network settings: Setting>General>Reset>Reset Network Settings

  • Problem in creating new cloud service

    I have tried almost all possible combination of letters to specify URL  for creating new cloud service and I am getting an error saying "This specified URL is already in use". Any help would be greatly appreciated. Thank you in advance. 
    Regards,
         StarMogu

    Hi,
    What combination of letters did you try? Base on my experience, some word is in blacklist and didn't used in cloud service name. Please see this same threads(
    http://social.msdn.microsoft.com/Forums/en-US/963acdd1-ee05-406b-978e-20528c7722ee/seriously-get-rid-of-the-url-name-blocking ).
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Help with major problem

    I have a major problem with my 4th generation iPod. Everytime I go to play it, it will skip songs when I don't want it to, pay for about 10 seconds and skip songs again. Sometimes it will play a song for while and then skip to another song halfway or

  • Replacing the internal DVD reader with a DVD Writer

    Hey there, I have a G4 mac tower at home. I want to replace the DVD reader currently intalled with an internal DVD writer. Can I just go to Best Buy and purchase any internal DVD writer or is there something specific I need to look for? Thanks

  • How do I put a photo album onto a usb drive ?

    How do I put a photo albumonto a usb drive to hand in an assignment?

  • Cant Create Custom Projects?

    I am trying to create a couple of different projects: 1. 4096x2048 Project Setting (custom) with 23.978fps and square pixels. When I try to click ok to create this project, it does absolutely nothing. I also tried a 1080p project (custom) and when cl

  • QT player 7 question

    I've always played purchased iTunes content in QuickTime player with no problems but I can't get it to play in QT Player 7 running QT Pro 7. I just get a grey screen. What am I doing wrong? (I'm not trying to export or record or do anything dodgy - I