Skip to content

mfullmore/sfdclogger

Repository files navigation

SFDC Logger

The idea of logging is not new and custom logging in salesforce is not new. There are lots of custom logging solutions so here is mine. If you want full logging and observibility you should look at https://pharos.ai/ but if you need a quick and dirty custom logger use sfdc logger.

Example

LoggerHttp log = new LoggerHttp();
Http h = new Http();

HttpRequest req = new HttpRequest();
String reqBody = '{"data": "value"}';
req.setBody(reqBody);

String endpoint = 'https://some-cool-url-web-service/awesome/resource';
req.setEndpoint(endpoint);
req.setMethod('POST');


log.requestBody = reqBody;
log.requestUrl = endpoint;

HttpResponse res = h.send(req);
log.responseBody = res.getBody();
insert log.end();

Managed Package

https://login.salesforce.com/packaging/installPackage.apexp?p0=04tak0000009DqrAAE

Read All About It

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published