Questions tagged [logging]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
44 views

DML currently not allowed - trying to log exception in a custom object inside the constructor

I have a controller extension that makes a get request inside the constructor to get some information from an api. public extension(ApexPages.StandardController stdController) { Account ...
user avatar
0 votes
0 answers
35 views

Can we track changes made via workbench?

We are working on our audit readiness and are preparing to restrict connected app access to Workbench for all profiles, except System Admins for full use and our Analysts so that they may do queries. ...
user avatar
  • 15
0 votes
2 answers
176 views

Handling FIELD_INTEGRITY_EXCEPTION with try catch and logging errors

I have got an apex trigger that sometimes errors with System.DmlException: Update failed. First exception on row 0 with id 00Q0800000fhnM2EAI; first error: FIELD_INTEGRITY_EXCEPTION The reasons for ...
user avatar
  • 103
-2 votes
1 answer
136 views

How to log external API calls [closed]

We have a Salesforce environment that calls an Azure Cloud from an APEX class. The customer wants to log all the calls that are made and if an error occurred also the error. How can I create logs from ...
user avatar
0 votes
0 answers
47 views

Are org's logs available elsewhere different from EventLogFile?

We are currently investigating when Apex classes/pages/triggers were last run, and the EventLogFile object was the suggested as the way of retrieving relevant data. But I wonder if the org's usage ...
user avatar
0 votes
1 answer
51 views

Logging works except when converting list of ids/sObjects to string

I have an ApexDebugLog class that logs errors by creating a record in my own custom object when something goes wrong. In 2 separate batch classes I'm using this logging class to log errors. If I just ...
user avatar
0 votes
1 answer
86 views

Logging framework inside a managed package

I really don't have much idea of how logging works in a managed package context. So my question might be very basic to you. Can anybody suggest a logging framework which we can use for our managed ...
user avatar
  • 1,242
0 votes
1 answer
294 views

Logging Apex exceptions through Event Bus while still rolling back the entire transaction?

I'm working on implementing a robust error logging framework for our org using Platform Events to ensure that we always capture errors in our code even if the transaction is rolled back. If I use ...
user avatar
0 votes
1 answer
36 views

Difference between sending leads into Dev account as opposed to Sandbox account? Leads not sent into Sandbox with similar settings as Dev account

We have created a webapp to send Leads into the salesforce system, which works great in our Dev account. However when using the same app for another business, which has a Sandbox account, the Leads ...
user avatar
  • 21
0 votes
1 answer
36 views

Can I change the status files format?

I would like to ask if there is an option to change the format (delimiter) of the success/error log files of each Dataloader operation? I could not find anything in the documentation, neither on the ...
user avatar
0 votes
1 answer
363 views

Logging for ConnectedAppPlugin class

I have a Connected App Handler Class (that extends the Auth.ConnectedAppPlugin) for one Connected App I am having. Use case is this class is used to set some additional attributes for which the ...
user avatar
0 votes
1 answer
225 views

Are emails sent from Apex recorded anywhere?

I am trying to determine the frequency of Apex emails to troubleshoot a limit issue I can't find references to the emails sent from Apex (Messaging.sendEmail / Messaging.SingleEmailMessage) neither in ...
user avatar
  • 394
0 votes
1 answer
74 views

How to track the source of Custom Object updates?

I'm facing many parasite update subscription API events for Key_Feature__c object. Some of them are happening on the records that describe the activities finished in deep past. These records do not ...
user avatar
2 votes
2 answers
115 views

Get app analytics across deployments?

If I develop a Salesforce AppExchange app and multiple Salesforce customers install the the app into their Salesforce orgs, as the developer, can I get customized analytics/stats from all usage of my ...
user avatar
  • 23
4 votes
1 answer
538 views

Using SendLog to retrieve User-Initiated Send name for each Job Id

After realizing that it is not possible to receive the name of the User-Initiated Send in the Data Extract activity of Automation Studio, we contacted Salesforce for a workaround. Our client, in ...
user avatar
1 vote
0 answers
219 views

Anyone connected a Salesforce org to e.g. Loggly or DataDog?

Cloud-based logging environments provide tools to help analyze log files. We are looking at using Platform Events as one of the outputs of our logging calls per Logging frameworks that use Platform ...
user avatar
  • 130k
9 votes
2 answers
2k views

Logging frameworks that use Platform Events - what is the full list?

I've found these two excellent projects: Andrew Fawcett's Advanced Logging with Platform Events Robert Sösemann's Apex Unified Logging that use Platform Events for logging and include a client to ...
user avatar
  • 130k
0 votes
0 answers
339 views

Verifying Marketing Cloud API calls

So I'm new to the Dev. Forums, and trying to learn as much as I can while studying for my MC admin and developer certs, so forgive me if this question isn't clear. In Marketing Cloud we have a lot of ...
user avatar
1 vote
0 answers
176 views

Run send log data extension

I want to log the sends (Triggered send & mass send). Therefore I created a DE by using the SendLog Template. But the DE is still empty. We are using "Retain Send Log Data" on every single send. ...
user avatar
  • 109
0 votes
0 answers
195 views

Is there any tool that can do event logging for Apex

I have a website that is built with Visualforce page and apex. I want to have logging feature added to the apex (trace, debug, info, ...eror, fatal). I know you can do this using debug log but my ...
user avatar
  • 143
0 votes
0 answers
19 views

Created a 30 day trial today, verified my phone number via email, but now I cant log into the lightning experience!

Im having a real hard time understanding what Im doing wrong here. I have signed up for a 15 day trial, and a 30 day trial, but I am not able to log back into either of these accounts. I linked them ...
user avatar
0 votes
1 answer
810 views

How to capture the request/response body of the standard REST API being hit by external systems

I am struggling with a requirement of having a complete logging mechanizm for both inbound and outbound API calls including the actual request body/header and response body. Outbound is covered by ...
user avatar
0 votes
1 answer
626 views

How to monitor API requests by user / connected app?

We have clients that access Salesforce API to write data and read data using the salesforce standard APIs. How do monitor the traffic, logs for these API calls? I'm also looking for ways to know the ...
user avatar
0 votes
1 answer
114 views

How to connect Salesforce logs output to Sematext or Elastic Search or any other Log Management system? [closed]

Is there any way to connect Salesforce to log management systems without custom coding in order to track all logs of our apps in one place?
user avatar
  • 758
1 vote
1 answer
467 views

Stack trace reference in Salesforce Commerce Cloud

On my sandbox, in my logs, I got an error and I got a reference to the stack trace of the error: Stack trace <ref:a6d7f20c52ed080c41c1e8e66b1bac4f> Is it possible to find the stack trace ...
user avatar
0 votes
1 answer
99 views

Send Logging not working on Sandbox

We are trying to log sends in a Send Log DE in Sandbox SFMC BU, but the data is not getting populated. Does Send Logging works in Sandbox? Thanks, Sanchit
user avatar
2 votes
2 answers
626 views

Are Web-to-Leads tracked as Event Logs?

Background I’m using Salesforce Event Logs to Monitor my Salesforce instance. Question Is Web-To-Lead tracked as part of Salesforce Event Logs?
user avatar
1 vote
0 answers
82 views

MobilePush Sendlog

i am using the MobilePush Sendlog template however i want to add additional data to the sendlog much like i have done with the email sendlog. Specifically i want to trap the Message type (location, ...
user avatar
  • 291
18 votes
2 answers
7k views

Developer Console suddenly truncating System.Debug output

Like many devs, I use JSON.Serialize() with System.Debug() to output large lists/objects to the Debug Log when needed. Over the past few days, I've run into a new issue with Developer Console where ...
user avatar
0 votes
1 answer
691 views

Audit Trail VS Event monitoring [closed]

what are the difference between Audit Trail and Event monitoring? Which informations can I retrieve from one and from another?
user avatar
  • 1,419
0 votes
1 answer
476 views

sys admin cannot log as some users

I have sys admin profile. I dont understand why I am not able to log as some users which have the same custom profile. For example in the image, "Analyst T.O" has the same profile as "Analyst, Credit" ...
user avatar
0 votes
1 answer
289 views

Enable send logging to a data extension

I have set up a send logging DE. So far so good. On the salesforce help I see that I have to enable the send logging to a data extension option: https://help.salesforce.com/articleView?id=...
user avatar
  • 103
5 votes
2 answers
901 views

Custom Logging, @Future, Transaction Control

I have a similar question to these two: Custom Logging and Future Methods Custom Exception Handling & Logging But my question this time is: can I put the @Future annotation on the Logger Class? ...
user avatar
  • 3,179
5 votes
1 answer
2k views

Exceptions and DML

It was to my understanding that when you throw an exception all previous operations are rolled back. When an exception occurs, code execution halts and any DML operations that were processed ...
user avatar
  • 3,179
3 votes
1 answer
791 views

Custom Logging and Future Methods

I have been reading up on the custom logging, DML, and exceptions but haven't seen anything that talks about @Future methods and exceptions. I have two scenarios: A Button is clicked on a Lead, ...
user avatar
  • 3,179
1 vote
0 answers
138 views

Developer console log not showing details

I am not sure what happened to my logs. I am setting up/testing a JIT handler to create new users & contacts when they log in via SSO. Yesterday, every time I logged in I would see a log entry ...
user avatar
2 votes
2 answers
767 views

Hiding JS console logs with a Lightning Component

I need to hide all javascript console logs in production environment.There is a component that i use in every lightning component(i.e Base).What is the most efficient way to hide the logs.I am ...
user avatar
0 votes
1 answer
51 views

Logging of a call from end-to-end through SalesForce

We are in the process of evaluating SalesForce for use in our enterprise and the one place we are getting a little hung up on is the ability to log and trace transactions. In the past, coming from a ...
user avatar
16 votes
2 answers
17k views

Maximum log level exceeded in Developer Console

Recently I have regularly been getting the error message below when opening the Developer Console: The Developer Console didn't set the DEVELOPER_LOG trace flag on your user. Having an active ...
user avatar
3 votes
1 answer
631 views

SFDX: Auto-Generated Log Levels are set to 'INFO' by default

I have an understanding of how debug logs work with the Developer Console and how to configure the log levels below in the UI, however, I'm unsure of how to set these log levels in VS Code with SFDX ...
user avatar
2 votes
1 answer
215 views

watch logs while logged in as user

I'm having the same issue as in this thread, where I need to be logged in as a test user with my app's permission set (and not higher), but I need see the logs to figure out why Calvin is successful, ...
user avatar
7 votes
1 answer
1k views

Is there a better way to debug Salesforce automation (triggers/workflows/process builder) than Developer Console > Perspective Manager?

I have some very simple automation in place for demoing Salesforce "Order of Execution". I have a field on called Version__c which increments by 1 in a trigger and a workflow. This is what happens: ...
user avatar
  • 889
1 vote
1 answer
755 views

SOQL query log for oauth-connected application

Is there a log/audit trail of API calls made by an oauth-connected application? I've found some logging inside the Salesforce developer console, but it seems to only apply to APEX code. Any idea how I ...
user avatar
  • 11
0 votes
0 answers
16 views

Safe to create custom object log records in a security-reviewed managed package app?

I want to create a logging system for our AppExchange managed package that will be recorded by Usage Metric features and will also comply with security guidelines to pass the review. To achieve this, ...
user avatar
1 vote
0 answers
59 views

Apex Logging for Managed Package

I log my apex code exceptions using getStackTraceString(). I understand that this is not visible to a customer log normally. But I already logged in to our LMA and logged in to the subscribers org and ...
user avatar
  • 107
11 votes
1 answer
504 views

Is $A.log (aura.log) long gone?

A colleague flagged the availability of $A.log (found in a blog) so we've spent a short while looking at it. The links from e.g. How to use aura.log() and where does it print it output? now point to ...
user avatar
  • 130k
4 votes
0 answers
139 views

Debug Logs / LMA / and Async methods

Can anyone confirm that when logged into a subscriber org via the LMA that debug logs for your namespace are still obfuscated when running async methods (future, batch, etc). If so, is there a work ...
user avatar
  • 53.1k
0 votes
1 answer
51 views

How would I go about logging in this scenario?

This is my scenario. I have a trigger on a custom object. The trigger invokes a future method in a class. This future method then does a series of callouts using a helper class to update other custom ...
user avatar
  • 1,760
0 votes
0 answers
56 views

How to handle uncaught custom exceptions in a managed package that are not being logged

I've noticed that uncaught custom exceptions in managed packages aren't recorded in the debug log if it's thrown in the context of the Salesforce UI or Lightning community. The exception message can ...
user avatar
  • 130
1 vote
1 answer
351 views

Identifying recipients with errors in send log

Based on Markus Slabina's great article I set up a send log for my Marketing Cloud. To enrich the standard send log data, I have added a snippet of AMP script to all my emails which allows me to ...
user avatar