is a global variable that gives a list of the names of messages generated during the evaluation of the current input line.


$MessageList
is a global variable that gives a list of the names of messages generated during the evaluation of the current input line.
Details

- Whenever a message is output, its name, wrapped with HoldForm, is appended to $MessageList.
- With the standard Wolfram System main loop, $MessageList is reset to {} when the processing of a particular input line is complete.
- You can reset $MessageList during a computation.
Examples
Basic Examples (2)
Get a list of messages produced in a computation:


Printing can be suppressed by using $MessageList inside of Quiet:
See Also
Tech Notes
Related Guides
-
▪
- Messages
Related Workflows
- Suppress Error Messages ▪
- Understand Error Messages
History
Introduced in 1991 (2.0)
Text
Wolfram Research (1991), $MessageList, Wolfram Language function, https://reference.wolfram.com/language/ref/$MessageList.html.
CMS
Wolfram Language. 1991. "$MessageList." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$MessageList.html.
APA
Wolfram Language. (1991). $MessageList. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$MessageList.html
BibTeX
@misc{reference.wolfram_2025_$messagelist, author="Wolfram Research", title="{$MessageList}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/$MessageList.html}", note=[Accessed: 15-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_$messagelist, organization={Wolfram Research}, title={$MessageList}, year={1991}, url={https://reference.wolfram.com/language/ref/$MessageList.html}, note=[Accessed: 15-August-2025]}