Skip to content

Instantly share code, notes, and snippets.

@blister
Last active February 27, 2016 13:39
Show Gist options
  • Select an option

  • Save blister/a54960ae9b89a6051ac5 to your computer and use it in GitHub Desktop.

Select an option

Save blister/a54960ae9b89a6051ac5 to your computer and use it in GitHub Desktop.
LogDebug API Examples
var LogDebug = require('LogDebug');
var ld = new LogDebug('YOUR_API_KEY');
ld.log('This is a simple log entry');
ld.log('This log entry has complex data', { user: 'Steve', isCustomer: false });
ld.error('Server error, send a text message!');
<?php
require_once 'LogDebug.php';
$ld = new LogDebug('YOUR_API_KEY');
$ld->log('This is a simple log entry');
$ld->log('This log entry has complex data', array( user => 'Steve', isCustomer => false ));
$ld->error('Server error, send a text message!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment