Web Connection
Logging traffic
Gravatar is a globally recognized avatar based on your email address. Logging traffic
  Michael Hogan (Ideate Hosting)
  All
  Jun 7, 2018 @ 09:18am

I'm a bit confused about logging level (using WC 5.x).

I am using SQL server for my session logs.

My web.config file has LogDetail set to False. Docs just say this controls the level of detail but all I'm seeing in the log are errors (Error = 1). Should LogDetail be set to True in order to see all the hits?

Gravatar is a globally recognized avatar based on your email address. re: Logging traffic
  Rick Strahl
  Michael Hogan (Ideate Hosting)
  Jun 7, 2018 @ 12:20pm

web.config logging is different from the Web Connection log table (Foxpro). LoggingDetail only affects the data in wcerrors.txt. You'll never want to run LoggingDetail=true unless you are debugging. It'll just blast tons of stuff into the log file. If off only errors are logged, otherwise all sorts of operational stuff gets logged. This is mainly a debugging feature for me to use although it can also be useful for troubleshooting when things are not working right.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Logging traffic
  Michael Hogan (Ideate Hosting)
  Rick Strahl
  Jun 7, 2018 @ 02:10pm

OK, so how do I get a record of every hit into the request logs (wwrequestlog)? At the moment, only errors are being logged there.

Gravatar is a globally recognized avatar based on your email address. re: Logging traffic
  Rick Strahl
  Michael Hogan (Ideate Hosting)
  Jun 7, 2018 @ 07:59pm

Either on the server status form or yourApp.ini and LogToFile=On.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Logging traffic
  Michael Hogan (Ideate Hosting)
  Rick Strahl
  Jun 8, 2018 @ 09:32am

I have all that - perhaps I have a SQL table structure problem preventing the insert.

Gravatar is a globally recognized avatar based on your email address. re: Logging traffic
  Rick Strahl
  Michael Hogan (Ideate Hosting)
  Jun 8, 2018 @ 10:44am

Yes that might be it. The debugger is your friend 😃

+++ Rick ---

© 1996-2024