LogMessage Class |
Namespace: ABB.Robotics.RobotStudio
public class LogMessage
The LogMessage type exposes the following members.
Name | Description | |
---|---|---|
LogMessage(String) |
Initializes a new instance of the LogMessage class with the specified message text.
| |
LogMessage(String, LogMessageSeverity) |
Initializes a new instance of the LogMessage class with the specified message text and severity.
| |
LogMessage(String, String) |
Initializes a new instance of the LogMessage class with the specified message text and category.
| |
LogMessage(String, String, LogMessageSeverity) |
Initializes a new instance of the LogMessage class with the specified message text, category and severity.
| |
LogMessage(String, String, LogMessageSeverity, String) |
Initializes a new instance of the LogMessage class with the specified message text, detailed text, category, severity and help topic.
| |
LogMessage(String, String, String, LogMessageSeverity) |
Initializes a new instance of the LogMessage class with the specified message text, category and severity.
| |
LogMessage(String, String, String, LogMessageSeverity, String) |
This constructor is for internal use only.
|
Name | Description | |
---|---|---|
CanActivate |
Indicates if this message can be double-clicked to display more information.
| |
Category |
Gets the message category. This property is used to categorize log messages which is related to each other.
A PowerPack for example, could define its own category for all messages that it logs.
| |
DetailedText |
A more detailed description that if set to anything will be shown in a dialog when the message is activated.
| |
HelpTopic |
This property is for internal use only.
| |
SequenceNumber |
Gets the sequence number of the message severity of the message.
| |
Severity |
Gets the severity of the message. The severity is specified by the LogMessageSeverity enumerator.
| |
Text |
Gets the message text.
| |
TimeStamp |
Gets the date and time when the message was logged.
|
Name | Description | |
---|---|---|
Equals |
Indicates whether the current object is equal to another object
(Overrides ObjectEquals(Object).) | |
Finalize | (Inherited from Object.) | |
GetHashCode |
Returns the hash code for this object.
(Overrides ObjectGetHashCode.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Name | Description | |
---|---|---|
MessageActivated |
Raised when this message is activated, e.g. double-clicked in the GUI.
|
Project.UndoContext.BeginUndoStep("Logger"); try { // How to add categories to the Logger! // Add two categories. if (!Logger.CategoryCaptions.ContainsKey("MyKey")) { Logger.CategoryCaptions.Add("MyKey", "My Category"); Logger.CategoryCaptions.Add("AnotherKey", "Another Category"); } // Print a message in different categories. Logger.AddMessage(new LogMessage("This is just a test message!", "MyKey")); Logger.AddMessage(new LogMessage("This is just a test message!", "AnotherKey")); } catch { Project.UndoContext.CancelUndoStep(CancelUndoStepType.Rollback); throw; } finally { Project.UndoContext.EndUndoStep(); }