Questions tagged [debug-logs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
16 votes
2 answers
21k 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
18 votes
2 answers
9k 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.4k
4 votes
3 answers
1k views

How to analyze Apex CPU consumption

Is there a tool or a recommended approach to analyzing Apex CPU consumption based on a debug log? For example, consider the log entries below. 18:47:41.12 (7012039114)|CODE_UNIT_STARTED|[EXTERNAL]|...
Marty C.'s user avatar
  • 4,359
2 votes
1 answer
1k views

How can I see debug logs, when the record is created by System as a user?

I am trying to setup a trace flag to debug. When I select User in the dropdown and try to find System in there. It doesn't show up. What can I do ?
manb's user avatar
  • 95
13 votes
2 answers
10k views

System.debug(JSON.Serialize(o)) Not longer shows full string

For the longest time I have been using System.debug(JSON.Serialize(o)) to output objects to the debug log for troubleshooting purposes. This has worked up until my most recent project. Even existing ...
gNerb's user avatar
  • 9,343
12 votes
2 answers
8k views

How are we supposed to use debug logs for a specific Apex class only

I'm trying to capture the logs for a specific class for a user with a lot of transactions (hundreds in any given minute). For example, the user will have 100 transactions done in a minute that will ...
Jorjani's user avatar
  • 2,192
8 votes
1 answer
4k views

Debug Log Traced Entity Type Apex Class

I am setting the debug log Entity Type to APEX Class and it is not logging anything when I call the class. The class I am setting it as is definitely being called, the date/time is set to 24 hours ...
Olivia's user avatar
  • 3,369
3 votes
2 answers
9k views

How to Delete All Debug Apex logs in Apex? [duplicate]

I'm trying to delete the complete Apex debug logs but getting DML operation Delete not allowed on List<ApexLog>. Code: List <Apexlog> loglist = [Select Id from Apexlog]; delete loglist; ...
Issac Pal's user avatar
2 votes
1 answer
8k views

How to obtain trigger log from Email2Case?

I have a trigger on EmailMessage that is looking at newly inserted emails sent for Email2Case, and parsing the text for certain trigger words and updating the case if found. This has been working, ...
Jason Clark's user avatar
  • 11.4k
2 votes
1 answer
2k views

How do I set the log levels for force:apex:log:tail?

I'm in SFDX/VSCode, using the sfdx force:apex:log:tail command. That makes it easy to pull up the latest log, but when I try to launch the debugger, it says I need Apex at FINEST and VisualForce at ...
PatMcClellan__c's user avatar
-1 votes
1 answer
565 views

Facing heap size issue when querying and processing apex logs in LWC component

We are creating a apex log table and users will select a log and we need to show the log body to them. While implementing this we are facing apex heap size issue. From the UI users will select the log ...
Ram's user avatar
  • 24