how to use loggly in apex for massive scale logging
DESCRIPTION
Join us for live coding an Apex logging framework to learn how to get information out of a managed package with very little effort, making it much easier to debug. Using the REST API of cloud-based logging service Loggly, we'll create a client in Apex that acts as a sink for the logs and captures log data back into the Force.com platform, thus providing the chance to make use of all this wonderful data we capture.TRANSCRIPT
How to use Loggly in Apex for Massive Scale Logging
Simon Goodyear, Beaufort 12, CTO@simongoodyear
Simon GoodyearBeaufort 12, CTO@simongoodyear
What is logging?
Logging
System.debug
• Capture
• Control
• Consume
public static Void debug(LoggingLevel logLevel, Object msg)
An alternative?
Client Org
Our Org
Filter
Datastore
Filter
Capture
Demo 1
Instrumentation• What data should we capture?
• Exceptions• Steps in complex flow• Method returns• Callouts
• More points of capture is genrally better
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
Demo 2
Consume
Demo 3
Bringing it all together
Client Org
Our Org
Filter
Datastore
Filter
Simon Goodyear
@simongoodyear
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