python - PyCharm logging output colours -


i'm using pycharm develop gae app in mac os x. there way display colours in run console of pycharm?

i've set handler output colours in ansi format. then, i've added handler:

log = logging.getlogger() log.setlevel(logging.debug) handler in log.handlers:     log.removehandler(handler)  log.addhandler(colorhandler())  log.info('hello!') log.warning('hello!') log.debug('hello!') log.error('hello!') 

but colour same.

pycharm run console output

edit:

a response jetbrains issue tracker: change line 55 of snippet sys.stderr sys.stdout. stderr stream colored red color while stdout not.

now colours displayed.

pycharm doesn't support feature natively, can download grep console plugin: http://plugins.jetbrains.com/plugin/7125?pr=pycharm , set colors like

here's screenshot: http://plugins.jetbrains.com/files/7125/screenshot_14104.png (link dead)

i hope helps :) although doesn't provide colorized console, step towards


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -