Skip to content

Instantly share code, notes, and snippets.

@jasonicarter
Created September 2, 2013 15:45
Show Gist options
  • Save jasonicarter/6414289 to your computer and use it in GitHub Desktop.
Save jasonicarter/6414289 to your computer and use it in GitHub Desktop.
BlackBerry 10 logging feature - used to easily log output from classes (native logging in cascades isn't the greatest/easiest to use)
#define LOG(fmt, args...) do { fprintf(stdout, "[MyApp] " fmt "\n", ##args); fflush(stdout); } while (0);
USAGE:
LOG("Hello World");
OUTPUT:
[MyApp] Hello World
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment