Service Tier / Web service logging and tracing

igor.chladiligor.chladil Member Posts: 28
edited 2014-02-12 in NAV Three Tier
Hello,

Now we have a service tier and web services in managed code I do just wonder if it internally includes the options to trace/log its events.

I am especially interested in native web method calls logging - preferrably including the "message body". It would be really nice if I was able to switch on the tracing via common .NET .config files. However I have not seen any mention about it yet, therefore could anybody please clarify whether such an option is available?

Thanks Igor

Comments

  • kinekine Member Posts: 12,562
    At least you can use the Netmon or Ethereal to catch the communication on transport layer.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • igor.chladiligor.chladil Member Posts: 28
    Thanks, I beleive that the answer to my question may be in the fact that both of the services (Service Tier and Business WS) are based on WCF which itself should have the logging/tracing facilities built in. Therefore now I need just the correct parameters to the .NET .config files and it may hopefully run out of the box.

    Has anybody got the suggestions on what should go into these .config files in order to start at least some .NET logging of the new navision services?
  • kinekine Member Posts: 12,562
    If you have Visual Studio, there is WCF Service Configuration Editor in the tool menu. You can run it and configure what you want... ;-)

    For more see http://msdn.microsoft.com/en-us/library/ms732009.aspx
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • absolutelyfreewebabsolutelyfreeweb Member Posts: 104
    Has anyone succeeded with wcf logging on NAV 2013 ?

    I can't get a log to appear no matter what I do.

    I'm adding the log configuration to the instance config file.

    I've checked that the service user has modify rights to the log folder.

    I get no errors at all. Help anyone ? :?: :cry: ](*,) :-k

    (what triggers the log creation? I'm trying to consume a web service through a net interop. Not exposing one.)

    see also:

    http://blogs.msdn.com/b/nav/archive/201 ... ected=true

    http://msdn.microsoft.com/en-us/library/ms732009(v=vs.100).aspx

    viewtopic.php?f=32&t=41010&view=previous
  • absolutelyfreewebabsolutelyfreeweb Member Posts: 104
    I got it to work, but not on the instance level. should put the config in the Microsoft.Dynamics.Nav.Server.exe.config not in instance level config
Sign In or Register to comment.