locked
What is AdvancedLoggingPlugin.ApplicationLogUrls set to? RRS feed

  • Question

  • User-731534415 posted
    Hi,
    I am trying to use advancelogging feature and set it up using instructions posted on http://learn.iis.net/page.aspx/582/advanced-logging-for-iis-70---client-logging/
    In order to send the logs to the IIS server, i use the following code in my silverlight 4 client
    void MainPage_Loaded(object sender, RoutedEventArgs e)
    {
    AdvancedLoggingPlugin log = new AdvancedLoggingPlugin();
                log.ApplicationLogUrls = new List<string> { "http://ServerName/XXX-Client.log" };
                log.TimerInterval = TimeSpan.FromSeconds(10);
                log.SmoothStreamingMediaElement = SmoothPlayer;
    }
    

    Notice the ApplicationLogUrls.
    Now am I supposed to find XXX-Client.log file on the server in C:\inetpub\logs\AdvancedLogs dir? Becuase I don't see it. Is there someother place that I need to look.
    Thursday, August 11, 2011 7:09 PM

All replies

  • User-1672167363 posted

    Hi,

    It may take awhile to get used to where folders files are located. This is "Best Effort" to explain.

    Use the information in Tom's Post http://blogs.iis.net/tomkmvp/archive/2008/12/11/what-is-virtual.aspx 

          for reference and "What is Virtual".

    A) Next look at "%systemdrive%\inetpub\wwwroot\" using Windows Explorer.

    B) Finally look at "%systemdrive%\inetpub\logs\" using Windows Explorer.

    C) So where are my files on the file system or Web Server ?

    D) The partial answer is  "absolute" vs "relative" references and physical locations.

    Plan 9 for for files and locations in file system and web server:

    Step 1 ) For the Web Server http: // Server-Name / logs / could to be makedir as "%systemdrive%\inetpub\wwwroot\logs"

          you then can use http:// Server-Name / logs / XXX-Client.log as reference in your code.

    Step 2) The normal file system location that is used "%systemdrive%\inetpub\logs\AdvancedLogs\".

    Step 3) You could create an Alias in Web Server logs that points to "%systemdrive%\inetpub\logs\AdvancedLogs\".

     Note: The system variable "%systemdrive% is the drive location ie. C:\  it makes life easier.

    You can use Step 1 - 3 as part of your coding.

    For Step 3 it is the least desired method it has security risks.

    For the folders you create for your logs need proper permissions and User rights to write the logs.

    General Coding suggestion: Before you try to create a log have try catch block and check that

             the folder or alias exists.

    You may know some of the information above look at this as refresher.

    HTH

    Martin

     

     

     

     

    Monday, August 15, 2011 2:35 AM