Difference between revisions of "HowTo:Configure Logging"
(→Switch off logging) |
|||
(31 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | + | == Configure Logging for Version 3.5 or earlier == | |
+ | By default, logging is switched on using default setttings, for example for the destination path of the logging files. See [[Configuration_Files/Logging.config|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: | 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.exe.config''' for {{UBIK Studio}} |
* '''Web.config''' for the webservice | * '''Web.config''' for the webservice | ||
Line 40: | Line 10: | ||
<loggingConfiguration name="" tracingEnabled="true" defaultCategory="ASSERTION"> | <loggingConfiguration name="" tracingEnabled="true" defaultCategory="ASSERTION"> | ||
... | ... | ||
− | <categorySources> | + | <categorySources> |
− | <add switchValue="Off" name="ASSERTION"> | + | ... |
− | <listeners> | + | <add switchValue="Off" name="ASSERTION"> |
− | <add name="log.assertion"/> | + | <listeners> |
− | </listeners> | + | <add name="log.assertion"/> |
− | </add> | + | </listeners> |
+ | </add> | ||
+ | ... | ||
+ | </categorySources> | ||
... | ... | ||
+ | </loggingConfiguration> | ||
</source> | </source> | ||
− | Instead of editing the config files, it is also possible to use the graphical configuration tool from the [www.microsoft.com/en-us/download/details.aspx?id=15104 Enterprise Library]. After installing the package open the config file with the tool and switch on or off logging for each category as shown. | + | [[File:UI_Configure _Logging_EntLibConfig.png|220px|thumb|border|alt=Configure logging|Configure logging]] |
+ | Instead of editing the config files, it is also possible to use the graphical configuration tool from the [http://www.microsoft.com/en-us/download/details.aspx?id=15104 Enterprise Library]. After installing the package open the config file with the tool and switch on or off logging for each category as shown. | ||
+ | {{Clear}} | ||
==See also== | ==See also== | ||
− | * [[WriteLogEntry_(Activity)|WriteLogEntry (Activity)]] | + | * [[Logging]] |
− | * [[ | + | * [[Configuration_Files]] |
+ | * [[Web_Service_Configuration|Web service configuration]] | ||
+ | * [[Activity:WriteLogEntry_(Activity)|WriteLogEntry (Activity)]] | ||
+ | * [[Serilog]] | ||
+ | {{Category/Version|3.5.0}} | ||
− | [[Category:How-To]] | + | [[Category:3.5.0|Configure Logging]] |
− | [[Category: | + | [[Category:How-To|Configure Logging]] |
+ | [[Category:Installing|Configure Logging]] | ||
+ | [[Category:Server|Configure Logging]] |
Latest revision as of 11:23, 24 November 2020
Configure Logging for Version 3.5 or earlier
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>
...
<categorySources>
...
<add switchValue="Off" name="ASSERTION">
<listeners>
<add name="log.assertion"/>
</listeners>
</add>
...
</categorySources>
...
</loggingConfiguration>
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.