Questions tagged [logging]
The logging tag has no usage guidance.
21
questions
25
votes
4
answers
4k
views
Need to get logfile smaller
I have a massive log file which breaks the 2Meg limit and hence truncates.
There is some information I need that I am logging by doing
System.debug
However, I don't get to see because of the ...
22
votes
2
answers
12k
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 ...
17
votes
2
answers
26k
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 ...
16
votes
3
answers
22k
views
Best practices for monitoring Scheduled Apex and Batch Apex?
We have multiple Apex jobs running, both from Schedulable and Batchable code. While an attentive SA could examine the Apex Jobs list to check that everything is OK, it seems a better idea to have ...
23
votes
4
answers
9k
views
How to check debug logs for installed App?
how to check debug logs for installed app? Is there any way to check those ?
What are the best ways/practice to follow when developing app, so that we can get some logs in case something goes wrong on ...
19
votes
2
answers
12k
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 ...
7
votes
3
answers
10k
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, ...
16
votes
4
answers
20k
views
Console.log truncates my debug `...}`
I'm using developer console log to see all my debug logs but it cuts off my log after 1920 characters
How do I fix that? and even I have tried download the log and open in a notepad++ but still I ...
12
votes
3
answers
3k
views
Inconsistent logging output!
I am trying to log some values for general testing and I am getting some really strange behaviour. Some of the logs are just not printing. This is what is happening:
I am pressing a button that runs ...
8
votes
1
answer
453
views
Does the Summer ’15 release remove the ability to set test logging levels with the DebuggingHeader?
The Summer ’15 release notes have a section called Receive Debug Logs Predictably.
It currently states that the order of precedence for debug logs will be:
Trace flags set in the Developer ...
4
votes
3
answers
9k
views
Salesforce Email Service Debugging
I have defined an email service which unfortunately isn't working. Is there a place I can monitor errors? The class doesn't appear in debug logs.
3
votes
3
answers
1k
views
Adjust logging levels during code deployment?
Is there a way to adjust the various logging levels when deploying code to production through the IDE? The log is being truncated and I'm not seeing error details that are preventing my deployment.
...
18
votes
2
answers
2k
views
How to efficiently profile Visualforce components and their controllers?
I have a quite complex Visualforce component (edit grid) that is running to slow (2-4 seconds to display)
When I say complex I mean:
The Component itself is calling other components
Many thousand ...
14
votes
4
answers
8k
views
Can I throw an exception in apex and still log the caught exception?
I'm really wrestling with the best error handling strategy. My goal is to handle all exceptions that I can identify, log them to a table in the database, and surface a helpful message about what ...
10
votes
2
answers
4k
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 ...
9
votes
1
answer
2k
views
Expense of using System.debug
I've seen code on an inherited project output debug info while iterating large collections of objects.
System.debug(Logginglevel.DEBUG, 'sQuery=' + sQuery);
If the system logging level is set ...
8
votes
4
answers
5k
views
No log for Visualforce errors
I'm having a problem that I think has something to do with recent version because I don't remember having this problem before. Basically, when I have an error in a Visualforce page, I don't see the ...
3
votes
1
answer
918
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, ...
2
votes
2
answers
3k
views
Debug Log not working with RESTResource
I have the following class:
@RestResource(urlMapping='/myservice')
global with sharing class MyService {
@HttpPost
global static String newMessage() {
RestRequest req = RestContext....
1
vote
1
answer
5k
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 ...
0
votes
1
answer
3k
views
Capture subject line in send log
I'm trying to capture the emails subject in the send log. Is there any way for me to do this?
To the 'experienced' community members: Not sure how to rephrase this any better. Maybe you could tell ...