The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
2answers
37 views

Using Debug Logs Efficiently for Tracking Errors

A general question. We all put some System.debug() statements in our controllers for error handling, for info messages, etc. But there are plenty of logs in the system. When some exception throws, ...
0
votes
0answers
16 views

Custom Logging Framekwork

Situation From time to time I have to write my own custom logging class. Now I'm wondering: Is there some kind of Custom Logging Framework available? In general I'm thinking of a framework similar ...
0
votes
2answers
24 views

Debug log getting truncated [duplicate]

Since there are so many classes and methods called from my class method, the debug log generated is very huge and getting truncated. How can i see the full debug log ? Is there a way through which i ...
0
votes
1answer
30 views

How do I disable debug log when deploying and running tests with ant migration tool?

I am running into an issue where every time I deploy to my org with the ANT tool the output is flooded with unit test debug logs. I have added logType="None" to the build.xml which doesn't help. I ...
1
vote
1answer
15 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.
0
votes
2answers
30 views

My custom object for logging scheduled batch jobs isn't working

I recently created a custom object for logging certain scheduled Apex batch runs, but the code I added to the batchable class doesn't seem to be creating records in the custom object as intended. The ...
2
votes
0answers
25 views

How to get Log Requests Available amount?

Is it possible with SOQL or some API to get the Log Requests Available value for specified user?
1
vote
1answer
23 views

How can I keep a detailed log of the actions performed by specific scheduled batch jobs?

I have a few batch jobs that are scheduled to run each morning, and I want to keep better track of all the actions they perform. I know I could find this via Debug logging, but when I turn it on it ...
0
votes
0answers
47 views

SFLogger causes crash on running application

I am encountering a crash when using the salesforce iOS SDK. I setup my application similarly to the example mobile application given by the forceios command line library. On top of the standard ...
1
vote
1answer
21 views

Overnight debugging of a specific user

Anyone find a way to extend the logging capability of the developer console, or perhaps an appexchange app that will allow extended exception logging for overnight batch apex and integrations? Trying ...
0
votes
1answer
40 views

Access debug log messages

I can query debug logs via ApexLog object with SOQL, but the result doesn't contain an actual message. How can I access the message? Is it achievable with SOQL or some API?
0
votes
1answer
16 views

Accessing Setup Log for Longer than 180 Days/20 Entires

We have a requirement to have record setup activities for much longer that 180 days/20 Entries limitations. We were thinking of copying the log to another object either in SF or outside a few times ...
0
votes
0answers
21 views

How can my users get their email log activity?

I am trying to give my users that ability to get their email sent from SF history. The suggested solution is not acceptable, as it requires the "Modify All Data" for the user/profile. Another option ...
0
votes
1answer
60 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 ...
1
vote
1answer
38 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 = ...
3
votes
0answers
86 views

REST Api Debug logs

Does anyone know how to enable debug logs for code executed through a REST interface? I have a stream of data that comes into Salesforce, but it is a nightmare trying to debug it based solely on the ...
2
votes
3answers
222 views

Replacement for System.out.println() log statement - Please don't say “Debug Logs”

In java it's easy to throw in a Sytem.out.println() and get some helpful info on the console. The closest I have come to that on Force.com is system.debug(); and then plowing through pages of Debug ...
4
votes
1answer
115 views

Is login history only stored for 6 months?

Is login history only stored for 6 months? I appreciate it's in the security audit controls workbook: Because of the volume of data, login history is automatically removed after six months. If you ...
1
vote
0answers
291 views

VF page does not display value that of variable that Controller debug log shows

I have been tasked with adding features to a large existing SF codebase. One of the features I am adding requires that a particular page be saved as a PDF. The newly generated PDF page displays ...
0
votes
2answers
76 views

Read from and write to file or Document

Is there any easy way to read from and write to a file in Salesforce?. I want to store metadata, let's say something like log data of a user, by mimicking the functionality of log4j.
0
votes
0answers
30 views

Missing the “Delivery Status Notification” Column in Email Log

From the Salesforce documentation here... https://help.salesforce.com/HTViewHelpDoc?id=email_logs_format.htm&language=en_US It shows a column "O" that should show Delivery Status Notification. ...
1
vote
2answers
376 views

How can I generate debug logs when I run unit tests from MavensMate?

Generating and viewing debug logs in MavensMate has been clarified before and works great for me - I especially like the Scrub feature. However, I can't generate a log when I run unit tests. To ...
1
vote
1answer
252 views

System Debug not displaying inside constructor

If I add the Debug statements inside the constructor it is not displaying in the log. Please suggest why this is happening. Thanks in Advance Dhiliban.
3
votes
1answer
48 views

I have a failing API call. What tools can I use to investigate it?

Yesterday my app made 23 calls to salesforce's API that failed, and I would like to find a record of those calls on salesforce user account. After about an hour of looking, I haven't been able to ...
1
vote
1answer
36 views

Monitor email service with data feed: email report

I am surprised I do not find find any examples of best practices on this matter. So, I have feeling maybe I am doing something wrong. We have email service which is receiving emails with CSV file ...
3
votes
2answers
1k views

How can I see when a workflow rule exceuted?

I want to be able to check when a workflow rule executed and see the result, is there a way of doing this?
6
votes
4answers
1k 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 ...
1
vote
3answers
85 views

Identifying which Customer Portal a User is logged into via Apex

I have two customer portals say A and B. When i log in into any one of the customer portal, In my apex class i want to identify for which portal i am logged in. Is it possible to identify for which ...
2
votes
2answers
125 views

In System Logs what does the false|true mean for Variables

There's a lot I don't understand about the Execution Logs from Salesforce. Maybe some of it is just my limited programming experience (Apex mostly, smattering of Python). I feel like there must be ...
3
votes
1answer
92 views

ExactTarget JAVA-SDK - Turn off logging of each SOAP Call

Please advise on how to turn off the SDK logging of each SOAP Call. I must be missing something obvious...Thank you!
2
votes
2answers
277 views

Log Exceptions during trigger in a custom object

I need to capture exceptions that happen during trigger executions in a custom object. The conclusion here, is that there is no way to do this. Is it possible to hit a Apex webservice callout which ...
2
votes
1answer
230 views

Log Callout Exception - Uncommitted work pending workaround

I want to perform 5 callouts and log any callout exceptions as a new case. Since mixing callouts and DMLs is not allowed, I made the logging asynchronous. Unfortunately, an ExecutionException ...
2
votes
0answers
68 views

debug log filter only for one user

The account I am using is Secondary Admin. And in Debug Logs, I am getting other user's log [using Salesforce UI]. It is quite annoying as it makes me hard to find my own debug logs. For Monitored ...
5
votes
1answer
469 views

How do I tell if a message was sent to a contact?

I am trying to troubleshoot emails not being received by a customer. Under the contact I see that the user sent 1 email to the customer. However, in the log file I see 2 internal message id's, 2 ...
7
votes
3answers
2k 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
3answers
286 views

Trigger on ApexClass Object

I want to try to log changes on apex classes in my org. Everytime the apex class is edited by someone i want to log the username and timestamp. Sounds easy but as i tried to write a simple trigger on ...
5
votes
3answers
6k 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 ...
3
votes
1answer
2k views

How to see full Status Detail of Apex Job

I have an apex job that is failing with a null pointer exception. The status detail unfortunately cuts the stacktrace just short of where it is actually helpful. Is there anyway to view the full ...
4
votes
1answer
116 views

Is it possible for an SFDC Apex unit test to parse a debug log?

I'm currently playing around with SFDC-Http Integration and the new Mock server functionality. In the Apex code which I am testing, I have this branch condition: if (response.getStatusCode() != 200) ...
8
votes
3answers
2k 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 ...
2
votes
1answer
102 views

access Monitored Users

I got a simple question, for custom logging I need to lookup some ApexLogs. Is there a way to access the Monitored Users for debug logging? I like to create or reset them programmatically.
14
votes
4answers
2k 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 ...
2
votes
1answer
33 views

When is a new logfile used?

I am trying to debug something here and one thing that is making it harder is that force uses several log files for the output. I click a button, request happens and multiple logfiles are generated ...
9
votes
3answers
1k 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 ...
1
vote
1answer
943 views

Using ForceIDE, how can I view the system.debug called from a class or trigger? ( I can see the ones from my test Class)

I am using the Eclipse Force.com IDE and have created a test class as well as a trigger. I put a system.debug in both but the Apex Test runner only displays the debug of the test class and not the one ...
7
votes
2answers
5k views

Where can I read the debug output of test classes

Suppose I have a test class TestClassName. @isTest private class TestClassName { static testMethod void testMethodName() { System.debug('My debug statement'); System.assertEquals(1, ...
4
votes
2answers
558 views

How can I query the LoginHistory object from Apex?

It is sort of available via the user interface, and sort of available via API calls (after v21), and sort of available via reports - but I want to actually query the object directly and drive ...
2
votes
2answers
215 views

How can I tell how long a user was logged in?

Please note that I don't want to know the interval between logins - I want to know how many minutes (or hours) elapsed between a login and the subsequent logout. Is it possible to calculate this in ...
13
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 ...
3
votes
3answers
474 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. ...