# Dialog.LogInternalError(Text, DataClassification, Verbosity) Method
> Version: _Available or changed with runtime version 6.0 until version 13.0 where it was deprecated for the following reason: "Consider using 'Session.LogMessage' instead."_
Log internal errors for telemetry.
> NOTE
> This method is supported only in Business Central on-premises.
## Syntax
```al
 Dialog.LogInternalError(Message: Text, DataClassificationInstance: DataClassification, VerbosityInstance: Verbosity)
```
> NOTE
> This method can be invoked without specifying the data type name.
## Parameters
Message
Type: ../text/text-data-type
This string contains the text of the error message you want to log into telemetry. It is not what the user will get, they will only get a generic error message.
DataClassificationInstance
Type: DataClassification<../../../developer>
Sets the classification of the data in the error message.
VerbosityInstance
Type: ../verbosity/verbosity-option
Represents the security level of events.
## Related information
dialog-data-type
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/dialog/dialog-loginternalerror-string-dataclassification-verbosity-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/dialog/dialog-loginternalerror-string-dataclassification-verbosity-method/
