Questions tagged [logging]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer
408 views

How to control logging level of VSCode's output when executing Apex anonymous?

When working with a scratch org within VSCode, I periodically setup a simple file to test out various Apex commands, etc. I will setup the Apex script and the use VSCode's command palette to run the ...
ImJohnMDaniel's user avatar
0 votes
0 answers
50 views

How do I add logging on salesforce app in 2nd generation managed code?

How do I add logging on salesforce app? Assuming it would not be a good idea to aggregate logs to external system, if we do add logs it is going to sit in the customer's salesforce org. What is the ...
Birey's user avatar
  • 121
0 votes
0 answers
914 views

Can't view debug logs in Developer Console - Failed to load data Log from Salesforce.com: Salesforce automatically deletes system logs 24 hours

The following error is coming up in a Sandbox Developer Console no matter what I try and it's been like this for weeks. Video: https://www.screencast.com/t/ULztMIi0edS0 Failed to load data Log from ...
rmarq423's user avatar
  • 957
0 votes
1 answer
77 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 ...
Владимир Джоване's user avatar
0 votes
0 answers
159 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. ...
B Leahy's user avatar
  • 17
0 votes
2 answers
1k 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 ...
chiapa's user avatar
  • 103
-2 votes
1 answer
1k 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 ...
J_rite's user avatar
  • 99
0 votes
0 answers
53 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 ...
Claudio's user avatar
0 votes
1 answer
83 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 ...
sFishman's user avatar
0 votes
1 answer
154 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 ...
nica's user avatar
  • 1,350
1 vote
1 answer
848 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 ...
Morgan Marchese's user avatar
0 votes
1 answer
113 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 ...
Kim K.'s user avatar
  • 21
0 votes
1 answer
43 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 ...
Jan Durica's user avatar
0 votes
1 answer
942 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 ...
SFDC Dev 27's user avatar
1 vote
1 answer
936 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 ...
RobD's user avatar
  • 404
0 votes
1 answer
437 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 ...
Pavel Koryagin's user avatar
2 votes
2 answers
133 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 ...
Andy's user avatar
  • 23
4 votes
1 answer
904 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 ...
Disasterkid's user avatar
3 votes
0 answers
394 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 ...
Keith C's user avatar
  • 135k
10 votes
2 answers
3k 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 ...
Keith C's user avatar
  • 135k
0 votes
0 answers
842 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 ...
chorlesbarkley7's user avatar
1 vote
0 answers
208 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. ...
Maik's user avatar
  • 109
0 votes
0 answers
271 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 ...
CB4's user avatar
  • 143
0 votes
0 answers
20 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 ...
Brittany Garcia's user avatar
0 votes
1 answer
1k 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 ...
Bergin Panimayam's user avatar
0 votes
1 answer
313 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?
pklochkov's user avatar
  • 788
1 vote
1 answer
818 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 ...
manymanymore's user avatar
0 votes
1 answer
150 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
Sanchit Mittal's user avatar
2 votes
2 answers
883 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?
Christian Deckert's user avatar
1 vote
0 answers
140 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, ...
AndrewC's user avatar
  • 301
18 votes
2 answers
11k 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 ...
Jason Clark's user avatar
  • 11.8k
0 votes
1 answer
1k 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?
DarkSkull's user avatar
  • 1,669
0 votes
1 answer
2k 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" ...
alejandro's user avatar
  • 109
0 votes
1 answer
674 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=...
Martijn e's user avatar
  • 145
5 votes
2 answers
1k 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? ...
Olivia's user avatar
  • 3,431
5 votes
1 answer
3k 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 ...
Olivia's user avatar
  • 3,431
3 votes
1 answer
885 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, ...
Olivia's user avatar
  • 3,431
1 vote
0 answers
254 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 ...
Jeremy Ragsdale's user avatar
2 votes
2 answers
1k 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 ...
user2650277's user avatar
0 votes
1 answer
78 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 ...
user484292's user avatar
17 votes
2 answers
23k 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 ...
Jelle van Geuns's user avatar
3 votes
1 answer
770 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 ...
Kai Tribble's user avatar
2 votes
1 answer
668 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, ...
PatMcClellan__c's 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: ...
rmarq423's user avatar
  • 957
1 vote
1 answer
1k 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 ...
jabb0r's user avatar
  • 11
0 votes
0 answers
19 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, ...
salesforce-hacker's user avatar
1 vote
0 answers
62 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 ...
rrey's user avatar
  • 107
11 votes
1 answer
521 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 ...
Keith C's user avatar
  • 135k
4 votes
0 answers
201 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 ...
Eric's user avatar
  • 54k
0 votes
1 answer
53 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 ...
abhi's user avatar
  • 1,790