Solved

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

Posted on 2010-11-23
3
388 Views
Last Modified: 2012-05-10
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
Comment
Question by:bcoturbo
  • 3
3 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 34276940
how do u change it to ODBC System DSN?
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 34276943
i meant to which logging the default web set is changed?
the default is W3C as far as i know...
0
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
ID: 34276948
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question