Questions tagged [logging]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
25
votes
4answers
3k 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 ...
14
votes
1answer
4k 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 ...
22
votes
4answers
7k 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 ...
14
votes
2answers
8k 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 ...
13
votes
3answers
19k 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 ...
8
votes
1answer
360 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 ...
12
votes
3answers
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 ...
3
votes
3answers
819 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
2answers
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
3answers
5k 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 ...
12
votes
4answers
6k 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 ...
8
votes
1answer
964 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 ...
3
votes
3answers
5k 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.
16
votes
1answer
2k 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
4answers
4k 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 ...
6
votes
3answers
3k 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, ...
3
votes
1answer
538 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
1answer
2k 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....
2
votes
1answer
92 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 ...