Created
December 17, 2012 20:14
-
-
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
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
- (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