Logrus: Nicely color-coded logs at Jetbrains GoLand

Created on 3 Oct 2018  路  3Comments  路  Source: sirupsen/logrus

I would like to see in my Jetbrains GoLand IDE something like this:
image

But found this one:

time="2015-03-26T01:27:38-04:00" level=debug msg="Started observing beach" animal=walrus number=8
time="2015-03-26T01:27:38-04:00" level=info msg="A group of walrus emerges from the ocean" animal=walrus size=10
time="2015-03-26T01:27:38-04:00" level=warning msg="The group's number increased tremendously!" number=122 omg=true
time="2015-03-26T01:27:38-04:00" level=debug msg="Temperature changes" temperature=-4
time="2015-03-26T01:27:38-04:00" level=panic msg="It's over 9000!" animal=orca size=9009
time="2015-03-26T01:27:38-04:00" level=fatal msg="The ice breaks!" err=&{0x2082280c0 map[animal:orca size:9009] 2015-03-26 01:27:38.441574009 -0400 EDT panic It's over 9000!} number=100 omg=true
exit status 1

How can I setup properly output in GoLand ?

question

Most helpful comment

Coloring is only performed when the output is identified as being a terminal. You can force the coloring output by setting the field ForceColors to true, but that will only work if your ide supports usual terminal escape sequence.

All 3 comments

Coloring is only performed when the output is identified as being a terminal. You can force the coloring output by setting the field ForceColors to true, but that will only work if your ide supports usual terminal escape sequence.

@SergeiVasilenko can we close this issue ?

@SergeiVasilenko can we close this issue ?

Yes, it helps

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vagruchi picture vagruchi  路  5Comments

UnAfraid picture UnAfraid  路  5Comments

rogierlommers picture rogierlommers  路  5Comments

drewwells picture drewwells  路  3Comments

penhauer-xiao picture penhauer-xiao  路  4Comments