In Developer console: print() = output, warn() = Warning, and the Information and the Error?

Hello users, once again i have a question: so in Developer Console exist 4 types of color lines and at least 2 can be made from scripts:

Output(white) = print()
Warning(yellow) = warn()
Is it also possible for Information (blue) and Error (red) to be accessible by scripts?

ok i found that Error (red) can be called by a script from “error ()” but I couldn’t find any for Information (blue), is there any that can do that?

While I’m not sure if there is a way to access the blue info text, you can still list the information of the error.

Since these errors are custom, you have to provide the information.

Screen Shot 2020-04-02 at 11.22.34 AM

Screen Shot 2020-04-02 at 11.23.25 AM

Screen Shot 2020-04-02 at 11.25.26 AM

1 Like

I know that, but I just wanted to know if there is any way to make information (blue) appear alone.

Whoops, yep! Found it.

Screen Shot 2020-04-02 at 11.30.31 AM Screen Shot 2020-04-02 at 11.30.40 AM

10 Likes