This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

$MessageList

$MessageList
is a global variable that gives a list of the names of messages generated during the evaluation of the current input line.
  • With the standard Mathematica main loop, $MessageList is reset to when the processing of a particular input line is complete.
Get a list of messages produced in a computation:
Use messages for processing:
Printing can be suppressed by using $MessageList inside of Quiet:
Get a list of messages produced in a computation:
In[1]:=
Click for copyable input
Out[1]=
 
Use messages for processing:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Printing can be suppressed by using $MessageList inside of Quiet:
In[3]:=
Click for copyable input
In[4]:=
Click for copyable input
Out[4]=
New in 2