Categories in common_test logs

I’m reading the documentation about Category - the first parameter to ct:pal/print/log, and I don’t really understand it.

From what I’ve seen, it defaults to info and it results in a green background in the log for that message. Anytime we get a crash, there is a red background, and through testing, I’ve noticed that if I put warning, I will get a yellow background.

But looking in the documentation, I can’t find anything about which ones work. It just talks about levels, and I’m more confused than when I started. Is there a list anywhere detailing which atoms result in what colors in the default CSS?

2 Likes

Here is more documentation on the subject, it’s linked on the page you linked to in this post. You might have read it, but perhaps it was missed HTML Style Sheets .

You can also find the default style sheet in Erlang/OTP on github

The default category is default (per pal/1 print/1 and log/1).

Hope this helps :slight_smile:

1 Like