web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to keep logs in AL coding?

(0) ShareShare
ReportReport
Posted on by 120

Hello everyone,

How to write log statements in AL language. For example Log4Net is using for C#.net, like that is there anything available in for AL language.

Thank You!!

I have the same question (0)
  • Suggested answer
    Mohana Yadav Profile Picture
    61,005 Super User 2025 Season 2 on at

    I am not sure about Log4Net but if we are talking about code changes history then we can use DevOps Repositories to store the code and we can check the history of changes.

  • BandaruSrinivas Profile Picture
    120 on at

    Hi Mohana,

    Thanks for your response.

    I want the custom logs in the AL coding, means I want to keep a custom log statement wherever I want in the AL coding, so that I can pass the required values to the log. Tomorrow if I get any issue, by seeing the custom logs I can easily find out how the inputs are passed and how the response was received. Like this I am expecting in the Business Central AL language.

    -Srinivas

  • Suggested answer
    JAngle Profile Picture
    133 on at

    Doesn’t seem like an AL thing. I’d check if vs code has an extension that does what you’re asking for.

  • BandaruSrinivas Profile Picture
    120 on at

    Happy to hear from you Josh.. Update if you get any path..

  • Suggested answer
    THE Italian Profile Picture
    on at

    You have to use telemetries to do so

    docs.microsoft.com/.../session-logmessage-string-string-verbosity-dataclassification-telemetryscope-string-string-string-string-method

    and logs will be ingested in your AI resources.

    Alternatively, you have to create a resident log process your own.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,135

#2
YUN ZHU Profile Picture

YUN ZHU 733 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 612

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans