Codeunit "Audit Log"
ID 8714
Namespace: System.Telemetry
Provides methods to log audit messages.
Properties
| Name | Value |
|---|---|
| Access | Public |
| InherentEntitlements | X |
| InherentPermissions | X |
Methods
LogAuditMessage
Logs a message to an audit account. Note, these logs are accessible to customers and will also be logged to a security audit account.
procedure LogAuditMessage(SecurityAuditDescription: Text, SecurityAuditOperationResult: SecurityOperationResult, SecurityAuditCategory: AuditCategory, AuditMessageOperation: Integer, AuditMessageOperationResult: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| SecurityAuditDescription | Text |
The description of the audit message. |
| SecurityAuditOperationResult | SecurityOperationResult |
The result of the operation. |
| SecurityAuditCategory | AuditCategory |
The category of the audit message. |
| AuditMessageOperation | Integer |
The operation of the audit message. |
| AuditMessageOperationResult | Integer |
The result of the operation. |
LogAuditMessage
Logs a message to an audit account. Note, these logs are accessible to customers and will also be logged to a security audit account.
procedure LogAuditMessage(SecurityAuditDescription: Text, SecurityAuditOperationResult: SecurityOperationResult, SecurityAuditCategory: AuditCategory, AuditMessageOperation: Integer, AuditMessageOperationResult: Integer, CustomDimensions: Dictionary of [Text, Text])
Parameters
| Name | Type | Description |
|---|---|---|
| SecurityAuditDescription | Text |
The description of the audit message. |
| SecurityAuditOperationResult | SecurityOperationResult |
The result of the operation. |
| SecurityAuditCategory | AuditCategory |
The category of the audit message. |
| AuditMessageOperation | Integer |
The operation of the audit message. |
| AuditMessageOperationResult | Integer |
The result of the operation. |
| CustomDimensions | Dictionary of [Text, Text] |
The custom dimensions to be logged. |