<HTML>
<CENTER><A HREF = "https://sparta.github.io">SPARTA WWW Site</A> - <A HREF = "Manual.html">SPARTA Documentation</A> - <A HREF = "Section_commands.html#comm">SPARTA Commands</A> 
</CENTER>






<HR>

<H3>log command 
</H3>
<P><B>Syntax:</B>
</P>
<PRE>log file keyword 
</PRE>
<UL><LI>file = name of new logfile 
</UL>
<UL><LI>keyword = <I>append</I> if output should be appended to logfile (optional) 
</UL>
<P><B>Examples:</B>
</P>
<PRE>log log.equil
log log.equil append 
</PRE>
<P><B>Description:</B>
</P>
<P>This command closes the current SPARTA log file, opens a new file with
the specified name, and begins logging information to it.  If the
specified file name is <I>none</I>, then no new log file is opened.  If the
optional keyword <I>append</I> is specified, then output will be appended
to an existing log file, instead of overwriting it.
</P>
<P>If multiple processor partitions are being used, the file name should
be a variable, so that different processors do not attempt to write to
the same log file.
</P>
<P>The file "log.sparta" is the default log file for a SPARTA run.  The
name of the initial log file can also be set by the command-line
switch -log.  See <A HREF = "Section_start.html#start_7">Section 2.6</A> for
details.
</P>
<P><B>Restrictions:</B> none
</P>
<P><B>Related commands:</B> none
</P>
<P><B>Default:</B>
</P>
<P>The default SPARTA log file is named log.sparta
</P>
</HTML>
