Jump to: navigation, search

Difference between revisions of "HowTo:Configure Logging"


Line 32: Line 32:
 
* [[Activity:WriteLogEntry_(Activity)|WriteLogEntry (Activity)]]
 
* [[Activity:WriteLogEntry_(Activity)|WriteLogEntry (Activity)]]
  
[[Category:Installing]]
+
[[Category:How-To|Configure Logging]]
[[Category:Server]]
+
[[Category:Installing|Configure Logging]]
[[Category:How-To]]
+
[[Category:Server|Configure Logging]]

Revision as of 09:21, 18 June 2020

By default, logging is switched on using default setttings, for example for the destination path of the logging files. See Logging.config for an example of a configuration file for logging.

Switch off logging

Turning off logging can be done by setting the switchValue in the Category Source to Off in the corresponding config files:

  • UBIK.Studio.exe.config for UBIK® Studio
  • Web.config for the webservice
<loggingConfiguration name="" tracingEnabled="true" defaultCategory="ASSERTION">
...
   <categorySources>
     ...
     <add switchValue="Off" name="ASSERTION">
        <listeners>
           <add name="log.assertion"/>
        </listeners>
     </add>
   ...
   </categorySources>
...
</loggingConfiguration>
Configure logging
Configure logging

Instead of editing the config files, it is also possible to use the graphical configuration tool from the Enterprise Library. After installing the package open the config file with the tool and switch on or off logging for each category as shown.

See also