Skip to content

Instantly share code, notes, and snippets.

@hunk
Created February 17, 2016 01:24
Show Gist options
  • Save hunk/d69781fc3d3d7c7b16b2 to your computer and use it in GitHub Desktop.
Save hunk/d69781fc3d3d7c7b16b2 to your computer and use it in GitHub Desktop.
// Debug log \o/
HKNormal(@"normal log without color, but whit the format of HK");
HKVerbose(@"normal log with Verbose in gray");
HKDebug(@"this line is with a debug word in %@",@"blue");
HKInfo(@"a info log");
HKWarning(@"oh, no, oh no, this is not happening");
HKError(@"aahhhhh, help!!!!!!");
HKAlt(@"alternative color");
HKOpt(@"optional color");
//All lines is in color
HKFullColor(true);
HKVerbose(@"this is a integer %zd",123);
HKInfo(@"and this is a float %f",-123.45678);
HKWarning(@"a date:%@",[NSDate date]);
HKError(@"array %@",@[@"item 1", @"item 2", @"item 3"]);
HKAlt(@"dictionary %@",@{@"name": @"Edgar G", @"nick": @"@hunk"});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment