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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / custom connector logs
Power Apps
Unanswered

custom connector logs

(0) ShareShare
ReportReport
Posted on by

Hi, I have created 3 custom connectors and using them in the app.
I want to know the outputs and inputs processed by the custom connectors.
where will it get stored and how can I access the logs and activities related to the connector failures etc. 

Categories:
I have the same question (0)
  • iBro Profile Picture
    78 on at

    Hi,

     

    This is a sample code mentioned in an article at http://never-stop-learning.de/logging-in-custom-connector-code/ .

    The log can be viewed in the connector testing page.

     

    public class Script : ScriptBase
    {
     public override async Task<HttpResponseMessage> ExecuteAsync()
     {
     HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK);
     Context.Logger.LogTrace("Script started");
     
     // Logging an information
     Context.Logger.LogInformation($"Operation [{Context.OperationId}] {Context.Request.Method} {Context.Request.RequestUri} was called.");
     
     // Logging errors
     try
     {
     throw new Exception("This is an error.");
     }
     catch (Exception ex)
     {
     Context.Logger.LogError($"An error occurred: {ex.Message}");
     Context.Logger.LogCritical("This is critical");
     }
    
     // Logging warnings
     if (true)
     {
     Context.Logger.LogWarning("A warning message here.");
     }
    
     response.Content = CreateJsonContent("{\"message\": \"Hello World\"}");
     return response;
     }
    }

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard