16
How to use Loggly in Apex for Massive Scale Logging Simon Goodyear, Beaufort 12, CTO @simongoodyear

How to Use Loggly in Apex for Massive Scale Logging

Embed Size (px)

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.

Citation preview

Page 1: How to Use Loggly in Apex for Massive Scale Logging

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

Simon GoodyearBeaufort 12, CTO@simongoodyear

Page 3: How to Use Loggly in Apex for Massive Scale Logging

What is logging?

Logging

Page 4: How to Use Loggly in Apex for Massive Scale Logging

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

An alternative?

Client Org

Our Org

Filter

Datastore

Filter

Page 6: How to Use Loggly in Apex for Massive Scale Logging

Capture

Page 7: How to Use Loggly in Apex for Massive Scale Logging

Demo 1

Page 8: How to Use Loggly in Apex for Massive Scale Logging

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

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

Demo 2

Page 11: How to Use Loggly in Apex for Massive Scale Logging

Consume

Page 12: How to Use Loggly in Apex for Massive Scale Logging

Demo 3

Page 13: How to Use Loggly in Apex for Massive Scale Logging

Bringing it all together

Client Org

Our Org

Filter

Datastore

Filter

Page 14: How to Use Loggly in Apex for Massive Scale Logging

Simon Goodyear

@simongoodyear

Page 15: How to Use Loggly in Apex for Massive Scale Logging

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