开发者

Is it possible to styling log for XCode

开发者 https://www.devze.com 2023-03-24 00:32 出处:网络
Now I was use NSLog() for debugging inside IDE, Is it possible to styling Log in Xcode ? Example Coloring 开发者_运维百科Log

Now I was use NSLog() for debugging inside IDE, Is it possible to styling Log in Xcode ?

Example


You can use the XcodeColors xcode plugin to colorize log statements in the Xcode console: https://github.com/robbiehanson/XcodeColors

It's very easy to use in combination with CocoaLumberjack: https://github.com/robbiehanson/CocoaLumberjack/wiki/XcodeColors

For example, with Lumberjack, one line of code allows you to set the color for all error messages. You could make them show up in red so they're easily distinguishable from other debug logging.

0

精彩评论

暂无评论...
验证码 换一张
取 消