Skip to content

Instantly share code, notes, and snippets.

@caoer
Last active August 29, 2015 14:06
Show Gist options
  • Save caoer/b1fc906067d374cea86a to your computer and use it in GitHub Desktop.
Save caoer/b1fc906067d374cea86a to your computer and use it in GitHub Desktop.
lumber
#ifdef DEBUG
//Lumberjack
DDTTYLogger *log = [DDTTYLogger sharedInstance];
// we also enable colors in Xcode debug console
// because this require some setup for Xcode, commented out here.
// https://github.com/CocoaLumberjack/CocoaLumberjack/wiki/XcodeColors
[log setColorsEnabled:YES]; */
[log setForegroundColor:[UIColor orangeColor] backgroundColor:nil forFlag:LOG_FLAG_INFO];
[log setForegroundColor:[UIColor redColor] backgroundColor:nil forFlag:LOG_FLAG_ERROR];
[log setForegroundColor:[UIColor darkGrayColor] backgroundColor:nil forFlag:LOG_FLAG_VERBOSE];
[log setForegroundColor:[UIColor colorWithRed:(255/255.0) green:(58/255.0) blue:(159/255.0) alpha:1.0] backgroundColor:nil forFlag:LOG_FLAG_WARN];
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment