Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [logging]

The tag has no usage guidance.

0
votes
0answers
19 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, ...
6
votes
0answers
62 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 ...
0
votes
1answer
23 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?
0
votes
1answer
36 views

Debug logs for failed REST API calls

I'm debugging an issue where our customer's iOS app (which makes REST API calls to Salesforce via the SDK) is encountering data sync errors. We believe the API is returning error messages but they are ...
0
votes
1answer
22 views

View Logs from API calls made externally

In the developer console, I am only able to view the logs of an API call that I made from within the developer console (tests) or from workbench. But when I make a call from Postman, I do not see any ...
0
votes
0answers
30 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" ...
0
votes
1answer
43 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=...
5
votes
2answers
148 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? ...
3
votes
1answer
162 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 ...
3
votes
1answer
407 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, ...
1
vote
0answers
31 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 ...
2
votes
2answers
78 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 ...
0
votes
1answer
33 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 ...
11
votes
2answers
4k 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 ...
2
votes
1answer
82 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 ...
2
votes
1answer
43 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, ...
4
votes
1answer
245 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: ...
0
votes
1answer
104 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 ...
0
votes
0answers
14 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 ...
1
vote
0answers
34 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 ...
11
votes
1answer
227 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 ...
4
votes
0answers
59 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 ...
0
votes
1answer
44 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 ...
0
votes
0answers
31 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 ...
1
vote
1answer
82 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 ...
0
votes
1answer
113 views

Marketing Cloud Enhanced FTP logs

Does Enhanced FTP log IP addresses from users? I mean a history of IPs, logins.
0
votes
1answer
567 views

SMS Send Logging Data Extension

We need to log few additional custom fields after sending SMS from Marketing Cloud using a Journey that has a Salesforce Event and starts after the creation of an opportunity in SF injecting a contact....
1
vote
1answer
705 views

What custom fields can I include in the SFMC send log?

I've just set up a SFMC send log and have included a few custom fields. But at first glance the data in the send log isn't that useful to me. How can I create a send log that includes data from the ...
3
votes
1answer
52 views

Debug Log Issue: Cannot set class-level logging (only trigger)

In an effort to remove unwanted ENTERING_MANAGED_PKG messages (which I cannot get rid of in Summer 17, I thought I'd try adding class-specific logging: From the Dev Console, choose Debug->Change ...
0
votes
2answers
474 views

Send Logging Marketing Cloud Email Sends

we wanted to create a Send Log DE. We went to create a DataExtension based on the SendLog template. But as shown in screenshot we do NOT have the option to see and choose the sendLog template for ...
1
vote
2answers
52 views

Logging for @future method that sets up user

I have an @future method that sets up a user - it is in a seperate future method to avoid errors relating to DML on set-up and non-setup objects in the same transaction. I would like to implement ...
0
votes
0answers
42 views

Retriveing logs from “Developer script exception”

When a Developer script exception email is generated, is there any way to view\capture the debug log as well?
1
vote
1answer
88 views

Are SOQL query logs visible in managed package?

I see that the queries made by the managed package are visible in the subscriber org. Is that the default behavior or can I limit the access to the SOQL query logs?
6
votes
3answers
2k views

Access to debug logs in managed package

Should you need a custom logging class for your managed package? I'm aware that you can use subscriber support but is there any benefit of using custom logging? If you do implement a custom logger, ...
2
votes
1answer
70 views

Streaming logs in API 37 and up

In API 36 you could subscribe to a streaming topic (/systemTopic/Logging) for logs. As of API 37, that no longer seems to work. How do you subscribe to the logging steaming topic in API 37+?
0
votes
1answer
162 views

How to delete Batch Process Logs in Salesforce?

Was running some tests in my dev org and got this: System.DmlException: Insert failed. First exception on row 0; first error: STORAGE_LIMIT_EXCEEDED, storage limit exceeded: [] I know the issue ...
0
votes
1answer
692 views

Get Debug Logs from Salesforce with MavensMate

I'm working with MavensMate v0.0.11-beta7 and using Salesforce API v.38 in configuration. I would like to get Debug Logs from Salesforce with MavensMate in order to open the files with Sublime Text. ...
12
votes
1answer
2k views

Get Currently Executing Class/Method Name?

I have seen a few different flavors of exception logging utility out there, and a common concept is to capture the class and method that were running when the exception was thrown. In the case that ...
5
votes
3answers
262 views

What do the colors in Developer Console's Save Order tab represent?

Background/Explanation: If you use Developer Console, and you open a Log file with the Analysis or All Perspective's enabled (Debug > Switch Perspective), you gain a "Save Order" tab that shows ...
0
votes
0answers
227 views

Why do I see blank debug logs in an org?

Can someone explain why I cannot see any logs in my debug logs? Looks completely blank? This is a production org and I'm looking at the logs in a managed package
1
vote
0answers
74 views

Not Getting Debug Logs Even Though Not Guest User and Trace Flags Set

I have setup my User Trace Flags like I would normally as my current user, but for some reason no debug logs are being captured. It would be different if statements were missing in the log, but I am ...
0
votes
1answer
246 views

Data Loader (or any API data import) logging / history

Where do I find a log and/or history of data import/export calls via the API in Salesforce? I know where to find Bulk call logs, but we don't typically call upon the Bulk option so nothing is listed ...
1
vote
3answers
497 views

How to change log levels for apex tests

I am trying to debug my code when running apex tests, but I cannot see my System.debug statements because there are a lot of log entries like HEAP_ALLOCATE... SYSTEM_CONSTRUCTOR_ENTRY... ...
1
vote
1answer
676 views

How to log system.debug messages in Managed package beta version

Is there anyway to log system.debug message(apex code) for a managed package im using beta version. Note:i tried capturing log for a particular user in my organisation... I could view soql execution ...
2
votes
0answers
37 views

Guest user debug logs suddenly not being created [duplicate]

We have a set of communities where unauthenticated users are submitting forms, and we want to set trace flags for the behavior done by these users, i.e. we want to observe what the guest users are ...
1
vote
0answers
416 views

How to log apex classes?

I'm creating debug log entries for an Apex class I want to watch. When I create it it doesn't show in the debug log entries list, but if I try to create another one for the same class, I get an error ...
0
votes
1answer
35 views

Is there any logs for Email Alerts to verify if email was delivered?

I've created Email Alert with Process Builder to send email notifications to newly added users in my custom table. How can I see the status of this email sending? I've found the Email Log Files ...
0
votes
1answer
48 views

Logging batches?

I have a scheduled batch class which runs repeatedly over some groups of accounts. In the finish-method I start the next batch if some condition is true. Simplified code: global void finish(Database....
48
votes
1answer
700 views

How does Salesforce determine where to apply the “*** Skipped X bytes of detailed log” section in a log

Firstly, this question isn't about how to access missing log content when a *** Skipped 53353122 bytes of detailed log style message is encountered. That is covered in another question and resolves ...
6
votes
1answer
54 views

What determines the API version of a Debug log when the request is initiated from a standard page layout

The raw debug log starts with a header line like the following: 37.0 APEX_CODE,FINEST;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WORKFLOW,INFO From the ...