Changes

HowTo:Configure Logging

2,079 bytes removed, 18:29, 11 May 2015
To document certain events (errorsBy default, warnings, etc.) that occur in the {{UBIK}} system, a logging mechanism is provided to support the designer or programmer in finding issues in the design process or to identify the reason switched on using default setttings, for problems at runtime. Logging in {{UBIK}} can be configured example for the Web Service as well as for destination path of the {{UBIK Studio}}. The general configuration for logging is described [http://msdn.microsoft.com/en-us/library/ms733830%28v=vs.110%29.aspx here]files.
* The logging for the Web Service can be configured via editing the See [[Web_Service_Configuration|web service configuration]] in section [[Web_Service_Configuration_Example#loggingConfiguration|loggingConfiguration]]. * The logging in {{UBIK}} Studio can be configured by editing the file '''UBIK.Studio.exeConfiguration_Files/Logging.config''', which is located in the program folder of {{UBIK}} Studio and also contains the section [[Web_Service_Configuration_Example#loggingConfiguration|loggingConfiguration]] which can be configured in the same way like the {{UBIK}} Web Service. ==Logging categories== {{UBIK}} has different types of categories configured for the logging mechanism. The following categories can be configured in the configuration files. Categories with the remark '''internal''' are available via customizing code, but are used to log internal events. As it is not recommended to mix logging of internal events together with others, the two additional categories '''CUSTOMIZING''' and '''WORKFLOW''' have been created. {| class="wikitable" | width = "88%" |-! Type!! Description!! Access|-| CUSTOMIZING || Log for events that occured in the customizing. This method is available by calling <code>UBIKKernel.LogCustomizing(...)</code> from the customizing code. || public|-| WORKFLOW || Log for events that occured when running workflows which is provided by the [[WriteLogEntry_(Activity)|WriteLogEntry Activityconfig]] || public|-| ASSERTION || Log for failed Assertions || internal|-| WARNING || Log for events that created a warning || internal|-| ERROR || Log for events that created an error || internal|-| DEBUG || Log for events that have to be investigated in the development || internal|-| SQL || Log for events related to SQL queries || internal|-| EXCEPTION || Log for events that caused an exception || internal|-|}example.
== Switch off logging ==
==See also==
* [[Activity:WriteLogEntry_(Activity)|WriteLogEntry (Activity)Logging]]* [[Configuration_Files]]
* [[Web_Service_Configuration|Web service configuration]]
* [[Activity:WriteLogEntry_(Activity)|WriteLogEntry (Activity)]]
[[Category:Installing]]
[[Category:Server]]
[[Category:How-To]]
10,686
edits