LogDebugMessageIfEnabled Procedure
Codeunit Debug Single Instance
Saves a message to the log if "Logging Mode" is active.
Overloads
Name | Description |
---|---|
LogDebugMessageIfEnabled(Variant; Text; Text) | Saves a message to the log if "Logging Mode" is active. |
LogDebugMessageIfEnabled(Variant; Text; Text; Boolean) | Saves a message to the log if "Logging Mode" is active. |
LogDebugMessageIfEnabled(Variant; Text; Text) Procedure
Saves a message to the log if "Logging Mode" is active.
Signature
[NonDebuggable]
LogDebugMessageIfEnabled(RecRelatedVariant: Variant; Type: Text; DebugMessage: Text)
Parameters
RecRelatedVariant
Variant
The record that this log is related to. If this is a Record, RecordRef or an RecordID the RecordID of the record will be saved in the log. Just supply an empty string if this log is not related to any record.
Type
Text
A text that identifies the type of this log record.
DebugMessage
Text
A message that will be saved to this log record.
LogDebugMessageIfEnabled(Variant; Text; Text; Boolean) Procedure
Saves a message to the log if "Logging Mode" is active.
Signature
[NonDebuggable]
LogDebugMessageIfEnabled(RecRelatedVariant: Variant; Type: Text; DebugMessage: Text; LogDuration: Boolean)
Parameters
RecRelatedVariant
Variant
The record that this log is related to. If this is a Record, RecordRef or an RecordID the RecordID of the record will be saved in the log. Just supply an empty string if this log is not related to any record.
Type
Text
A text that identifies the type of this log record.
DebugMessage
Text
A message that will be saved to this log record.
LogDuration
Boolean
Indicates if a duration between this call and the previous one should be logged to this log record.
This documentation is generated from Smart Toolbox v27.0