Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 8 kills code colors #88

Open
vinthewrench opened this issue Sep 19, 2016 · 11 comments
Open

Xcode 8 kills code colors #88

vinthewrench opened this issue Sep 19, 2016 · 11 comments

Comments

@vinthewrench
Copy link

http://openradar.appspot.com/radar?id=4934039337172992

Thanks a lot Apple.

@vinthewrench
Copy link
Author

"Apple has decided to rid the Xcode world of plugins and instead has introduced Xcode extensions.
As of right now, only source code extensions are currently supported. This only allows you to modify the source code of an existing file when running your extension. This does not allow us to modify anything with respect to the Xcode console. "

@qiulang
Copy link

qiulang commented Sep 20, 2016

A workaround I come up with is to write my own formatter , add color emoji to the different log leve, like this:

LogLevelTitle = @[@"❗️Error",@"❓Warning",@"💧Info",@"✅Debug",@"🔤Verbose"];

@skreutzberger
Copy link

skreutzberger commented Sep 20, 2016

The SwiftyBeaver logging framework is using emojis as fallback in Xcode 8 and you can also set your own ones.

screenshot 2016-09-20 at 09 04 30

default console logging is with hearts:

console

@qiulang
Copy link

qiulang commented Sep 20, 2016

I use DDLog extensively in my codes so I really don't want to introduce another log framework. But it is good to know that I am "on the right track". Thanks!

@devxoul
Copy link

devxoul commented Sep 21, 2016

Using emoji is REALLY cool!

@AdrienGiboire
Copy link

AdrienGiboire commented Oct 5, 2016

There seems to be alternatives to allow 3rd party plugins: https://github.com/XVimProject/XVim/blob/master/INSTALL_Xcode8.md

Tested and approved.

@gblazex
Copy link

gblazex commented Nov 4, 2016

what @AdrienGiboire linked works in Xcode 8

https://github.com/XVimProject/XVim/blob/master/INSTALL_Xcode8.md

@emaloney
Copy link

emaloney commented Jan 9, 2017

@robbiehanson Thank you for your hard work maintaining this project all these years. It was a real disappointment to have plug-ins removed from Xcode 8.0 — I hope Apple brings back a way for XcodeColors to live on.

While it isn't a direct replacement for what XcodeColors provided, the new 5.0 release of the pure Swift CleanroomLogger project uses color-coded characters to indicate the severity of a given log message:

◽️ Verbose messages are tagged with a small gray square — easy to ignore
◾️ Debug messages have a black square; easier to spot, but still de-emphasized
🔷 Info messages add a splash of color in the form of a blue diamond
🔶 Warnings are highlighted with a fire-orange diamond
🛑 Error messages stand out with a red stop sign — hard to miss!

Hope some folks find it useful.

@lupinglade
Copy link

Its mind boggling apple still hasn't added color support into the Xcode console...

king6cong added a commit to king6cong/log that referenced this issue Apr 21, 2017
because we can't tweak Xcode 8 to use color in console
robbiehanson/XcodeColors#88
king6cong added a commit to king6cong/log that referenced this issue Apr 21, 2017
because we can't tweak Xcode 8 to use color in console
robbiehanson/XcodeColors#88
king6cong added a commit to king6cong/log that referenced this issue Apr 21, 2017
because we can't tweak Xcode 8 to use color in console
emoji is a viable workaround, and log implementaion could
use this.
robbiehanson/XcodeColors#88
@hemangshah
Copy link

hemangshah commented May 3, 2017

Hey, guys, I have created Printer – a "fancy" way to print logs on the console. It has almost everything which may help you during an app development.

@qiulang @skreutzberger

king6cong added a commit to king6cong/log that referenced this issue Sep 8, 2017
because we can't tweak Xcode 8 to use color in console
emoji is a viable workaround, and log implementaion could
use this.
robbiehanson/XcodeColors#88
@nneuberger1
Copy link

I'm now just using base CocoaLumberJack with special emoji icons instead and seems to be working quite well.

`- (NSString *)formatLogMessage:(DDLogMessage *)logMessage {
NSString *msg = logMessage.message;

NSString *logLevel;
NSString *logLevel;

switch (logMessage.flag) {
    case DDLogFlagError:
        logLevel = self.outputIcons ? @"🔥 Error" : @"Error";
        break;
    case DDLogFlagWarning:
        logLevel = self.outputIcons ? @"⚠️ Warning" : @"Warning";
        break;
    case DDLogFlagInfo:
        logLevel = self.outputIcons ? @"ℹ️ Info" : @"Info";
        break;
    case DDLogFlagDebug:
        logLevel = self.outputIcons ? @"🐞 Debug" : @"Debug";
        break;
    case DDLogFlagVerbose:
        logLevel = self.outputIcons ? @"📣 Verbose" : @"Verbose";
        break;
}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants