• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 427
  • Last Modified:

How do I reset Default Web Site to default logging after being set to ODBC System DSN?

How do I reset Default Web Site to default logging after being set to ODBC System DSN?  Looking for a way of removing and or reset logging to defaults by using appcmd.exe or .Net by editing applicationhost.config file.  Whenever I change to use another System DSN or reset logging to default, does not work.  Leaves remnants of prior ODBC logging in applicationhosts.config file.  How do I reset website logging to defaults or rest in applicationhost.config file?
0
bcoturbo
Asked:
bcoturbo
  • 3
1 Solution
 
Meir RivkinFull stack Software EngineerCommented:
how do u change it to ODBC System DSN?
0
 
Meir RivkinFull stack Software EngineerCommented:
i meant to which logging the default web set is changed?
the default is W3C as far as i know...
0
 
Meir RivkinFull stack Software EngineerCommented:
to reset the logging to its default (W3C and daily scheduled) you can use the appcmd.exe:

appcmd.exe set config -section:system.applicationHost/log /centralLogFileMode:"CentralW3C" /commit:apphost

appcmd.exe set config -section:system.applicationHost/log /centralW3CLogFile.period:"Daily" /commit:apphost
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now