Skip to content

Instantly share code, notes, and snippets.

@kreeger
Created December 17, 2012 20:14
Show Gist options
  • Save kreeger/4321717 to your computer and use it in GitHub Desktop.
Save kreeger/4321717 to your computer and use it in GitHub Desktop.
Today is brought to you by Crayola color names and Objective-C. http://en.wikipedia.org/wiki/List_of_Crayola_crayon_colors
- (void)configureLogging {
[DDLog addLogger:[DDTTYLogger sharedInstance]];
[DDTTYLogger sharedInstance].colorsEnabled = YES;
[DDTTYLogger sharedInstance].logFormatter = [[GCLog alloc] init];
[[DDTTYLogger sharedInstance] setForegroundColor:[UIColor colorWithCrayola:@"Cornflower"]
backgroundColor:nil forFlag:LOG_FLAG_INFO];
[[DDTTYLogger sharedInstance] setForegroundColor:[UIColor colorWithCrayola:@"Screamin' Green"]
backgroundColor:nil forFlag:LOG_FLAG_API];
[[DDTTYLogger sharedInstance] setForegroundColor:[UIColor colorWithCrayola:@"Canary"]
backgroundColor:nil forFlag:LOG_FLAG_UI];
[[DDTTYLogger sharedInstance] setForegroundColor:[UIColor colorWithCrayola:@"Tumbleweed"]
backgroundColor:nil forFlag:LOG_FLAG_DATA];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment