Created
September 2, 2013 15:45
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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