Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >

$Messages

$Messages
gives the list of files and pipes to which message output is sent.
The default channel for messages is standard output:
Have messages go to a temporary file and the default channel:
Generate a message:
Show the contents of the temporary file:
Clean up by resetting $Messages to its default and closing the stream:
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
Out[5]=
New in 1
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF