$Messages

$Messages
gives the list of files and pipes to which message output is sent.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

The default channel for messages is standard output:

In[1]:=
Click for copyable input
Out[1]=

Have messages go to a temporary file and the default channel:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Generate a message:

In[3]:=
Click for copyable input
Out[3]=

Show the contents of the temporary file:

Clean up by resetting $Messages to its default and closing the stream:

In[5]:=
Click for copyable input
Introduced in 1988
(1.0)