I would like to use your lib for coloring my debug output.
With folowing steps on the your "Getting Started" quide I try add CocoaLumberjack to my project, But I have next problems:
I don't see any log in the console with next code:
DDLogInfo(@"Broken sprocket detected!");
DDLogVerbose(@"User selected file:%@ withSize:%u", @"asdasd", 222);
in the - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions methods I add
DDLog addLogger:[DDASLLogger sharedInstance]];
[DDLog addLogger:[DDTTYLogger sharedInstance]];
[[DDTTYLogger sharedInstance] setColorsEnabled:YES];
but no result. ((
Can you help me with this plroblem
P.S. My Xcode Version 4.5.1 (4G1004). iOS SDK 6.0. Mac os version 10.8.2(12C60)
This documentation on XcodeColors fixed my problem and might help you. If you don't get any output whatsoever, make sure you set ddLogLevel, for example with static const int ddLogLevel = LOG_LEVEL_VERBOSE;
static const int ddLogLevel = LOG_LEVEL_VERBOSE;
thank you for your reply,
in the my code I added the static const int ddLogLevel = LOG_LEVEL_VERBOSE;
Also one additional information:
on the my work PC installed a Mac OS version 10.7.5 and every thing work fine, and my messages in the console are colored.
maybe it's help for finding solution
Do you now see any messages in the Xcode console?
In the work I was configure my project and all colors show fine(on Mac OS 10.7.5). Then I copy work project to my home machine(Mac OS 10.8.2) and run this projec. I see all output messages in the console by they all with default color.
If the answer to both of these questions is yes, I'm sorry but I can't help you.
OK, this probably means XcodeColors isn't installed. You can install it using the guide for Xcode 4 available on the XcodeColors project page.
OK, I will try it.
Also I have one question about instalation XcodeColor:
Where I need copy the "XcodeColors.xcplugin" folder? I can not find Developer folder on the next path
This might not already be created by default, so either create all the intermediate folders or run mkdir -p ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/ in the Terminal. Once copied, restart Xcode and it hopefully should work.
mkdir -p ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/
Did this solve your problem?
Thank you very much for helping
Excellent. Would you mind closing the issue so it's marked as resolved? Glad to help.