Class WriteMessage
Write an arbitrary generic message
Inherited Members
Namespace: DuetAPI.Commands
Assembly: DuetAPI.dll
Syntax
[RequiredPermissions(SbcPermissions.CommandExecution|SbcPermissions.ObjectModelReadWrite)]
public class WriteMessage : Command
Remarks
If neither OutputMessage
nor LogMessage
is true, the message is written to the console output
Properties
Content
Content of the message to write
Declaration
public string Content { get; set; }
Property Value
Type | Description |
---|---|
string |
LogLevel
Log level of this message
Declaration
public LogLevel? LogLevel { get; set; }
Property Value
Type | Description |
---|---|
LogLevel? |
LogMessage
Write the message to the log file (if applicable)
Declaration
[Obsolete("Deprecated in favor of LogLevel")]
public bool LogMessage { get; set; }
Property Value
Type | Description |
---|---|
bool |
OutputMessage
Output the message on the console and via the object model
Declaration
public bool OutputMessage { get; set; }
Property Value
Type | Description |
---|---|
bool |
Type
Type of the message to write
Declaration
public MessageType Type { get; set; }
Property Value
Type | Description |
---|---|
MessageType |