How to Use Loggly in Apex for Massive Scale Logging
-
Upload
salesforce-developers -
Category
Technology
-
view
177 -
download
1
description
Transcript of How to Use Loggly in Apex for Massive Scale Logging
![Page 1: How to Use Loggly in Apex for Massive Scale Logging](https://reader033.fdocuments.in/reader033/viewer/2022051015/554ee961b4c905d51b8b5270/html5/thumbnails/1.jpg)
How to use Loggly in Apex for Massive Scale Logging
Simon Goodyear, Beaufort 12, CTO@simongoodyear
![Page 2: How to Use Loggly in Apex for Massive Scale Logging](https://reader033.fdocuments.in/reader033/viewer/2022051015/554ee961b4c905d51b8b5270/html5/thumbnails/2.jpg)
Simon GoodyearBeaufort 12, CTO@simongoodyear
![Page 3: How to Use Loggly in Apex for Massive Scale Logging](https://reader033.fdocuments.in/reader033/viewer/2022051015/554ee961b4c905d51b8b5270/html5/thumbnails/3.jpg)
What is logging?
Logging
![Page 4: How to Use Loggly in Apex for Massive Scale Logging](https://reader033.fdocuments.in/reader033/viewer/2022051015/554ee961b4c905d51b8b5270/html5/thumbnails/4.jpg)
System.debug
• Capture
• Control
• Consume
public static Void debug(LoggingLevel logLevel, Object msg)
![Page 5: How to Use Loggly in Apex for Massive Scale Logging](https://reader033.fdocuments.in/reader033/viewer/2022051015/554ee961b4c905d51b8b5270/html5/thumbnails/5.jpg)
An alternative?
Client Org
Our Org
Filter
Datastore
Filter
![Page 6: How to Use Loggly in Apex for Massive Scale Logging](https://reader033.fdocuments.in/reader033/viewer/2022051015/554ee961b4c905d51b8b5270/html5/thumbnails/6.jpg)
Capture
![Page 7: How to Use Loggly in Apex for Massive Scale Logging](https://reader033.fdocuments.in/reader033/viewer/2022051015/554ee961b4c905d51b8b5270/html5/thumbnails/7.jpg)
Demo 1
![Page 8: How to Use Loggly in Apex for Massive Scale Logging](https://reader033.fdocuments.in/reader033/viewer/2022051015/554ee961b4c905d51b8b5270/html5/thumbnails/8.jpg)
Instrumentation• What data should we capture?
• Exceptions• Steps in complex flow• Method returns• Callouts
• More points of capture is genrally better
![Page 9: How to Use Loggly in Apex for Massive Scale Logging](https://reader033.fdocuments.in/reader033/viewer/2022051015/554ee961b4c905d51b8b5270/html5/thumbnails/9.jpg)
Control• Try to filter the data you want sent
• Many different way to achieve this• Static resource• Custom setting• Remote site
• Control ultimately with the client
![Page 10: How to Use Loggly in Apex for Massive Scale Logging](https://reader033.fdocuments.in/reader033/viewer/2022051015/554ee961b4c905d51b8b5270/html5/thumbnails/10.jpg)
Demo 2
![Page 11: How to Use Loggly in Apex for Massive Scale Logging](https://reader033.fdocuments.in/reader033/viewer/2022051015/554ee961b4c905d51b8b5270/html5/thumbnails/11.jpg)
Consume
![Page 12: How to Use Loggly in Apex for Massive Scale Logging](https://reader033.fdocuments.in/reader033/viewer/2022051015/554ee961b4c905d51b8b5270/html5/thumbnails/12.jpg)
Demo 3
![Page 13: How to Use Loggly in Apex for Massive Scale Logging](https://reader033.fdocuments.in/reader033/viewer/2022051015/554ee961b4c905d51b8b5270/html5/thumbnails/13.jpg)
Bringing it all together
Client Org
Our Org
Filter
Datastore
Filter
![Page 14: How to Use Loggly in Apex for Massive Scale Logging](https://reader033.fdocuments.in/reader033/viewer/2022051015/554ee961b4c905d51b8b5270/html5/thumbnails/14.jpg)
Simon Goodyear
@simongoodyear
![Page 15: How to Use Loggly in Apex for Massive Scale Logging](https://reader033.fdocuments.in/reader033/viewer/2022051015/554ee961b4c905d51b8b5270/html5/thumbnails/15.jpg)
We want to hear from YOU!
Please take a moment to complete our session survey
Surveys can be found in the “My Agenda” portion of the Dreamforce app
![Page 16: How to Use Loggly in Apex for Massive Scale Logging](https://reader033.fdocuments.in/reader033/viewer/2022051015/554ee961b4c905d51b8b5270/html5/thumbnails/16.jpg)