Search the Knowledge Base
To provide diagnostic, debug or logging messages Experior provides several mechanisms.
The Experior.Core.Environment.Log class provides the following static methods to write messages to the Log window:
public static void Write(Exception exception);
public static void Write(string message);
public static void Write(Exception se, int id);
public static void Write(string message, bool underline);
public static void Write(string message, Color color);
public static void Write(string message, LogFilter filter);
public static void Write(string message, string hightlight);
public static void Write(string message, bool underline, LogFilter filter);
public static void Write(string message, Color color, LogFilter filter);
public static void Write(string message, string hightlight, Color color);
public static void Write(string message, string hightlight, LogFilter filter);
public static void Write(string message, Color color, bool underline, LogFilter filter);
public static void Write(string message, string hightlight, Color color, bool underline);
public static void Write(string message, string hightlight, Color color, LogFilter filter);
public static void Write(string message, string hightlight, Color color, bool underline, LogFilter filter);
The meaning of the arguments is straightforward;
To illustrate, the following code:
Experior.Core.Environment.Log.Write("Created sensorpart assembly", "sensorpart", CadetBlue, true, Communication );
Experior.Core.Environment.Log.Write("Created sensorpart assembly", "sensorpart", Red, false, Action);
will be shown as follows (when no filter is applied);
Similar to the regular logging there is also the possibility to only log your message in case the debugging option is set in Experior.
In this case the Experior.Core.Environment.Log.Debug class is used with the public static void Write(string message) method.
Example:
Experior.Core.Environment.Log.Debug.Write("This is an example debug message");
Experior also provides the possibility to print diagnostic messages to other areas than the logging window.
Therefore the class Experior.Core.Environment.Diagnostic contains the following static methods:
public static void Message(string message);
public static void Message(string message, Color color);
public static void Message(string sender, string message);
public static void Message(string message, Color color, Environment.DiagnosticAction action);
public static void Message(string sender, string message, Color color);
public static void Message(string message, Color color, Environment.DiagnosticAction action, Environment.Signs sign);
public static void Message(string sender, string message, Color color, Environment.DiagnosticAction action);
By default the messages are shown in the status area underneath the working area.
The arguments are:
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |