IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4860


Ignore:
Timestamp:
Aug 23, 2005, 3:38:16 PM (21 years ago)
Author:
Paul Price
Message:

Clarified behaviour of psLogSetDestination and psTraceSetDestination

Location:
trunk/doc/pslib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/ChangeLogSDRS.tex

    r4719 r4860  
    1 %%% $Id: ChangeLogSDRS.tex,v 1.163 2005-08-05 20:24:03 price Exp $
     1%%% $Id: ChangeLogSDRS.tex,v 1.164 2005-08-24 01:38:16 price Exp $
    22
    33\subsection{Changes from version 00 to version 01}
     
    769769\item Changed return types of \code{psXMLDocToFile, psXMLDocToMem,
    770770  psXMLDocToFD} to bool (bug 499).
    771 \end{itemize}
    772 
     771\item Clarified behaviour of \code{psLogSetDestination} and \code{psTraceSetDestination}.
     772\end{itemize}
     773
  • trunk/doc/pslib/psLibSDRS.tex

    r4794 r4860  
    1 %%% $Id: psLibSDRS.tex,v 1.325 2005-08-16 23:18:38 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.326 2005-08-24 01:38:16 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    12341234void psTraceSetDestination(int fd);
    12351235\end{prototype}
    1236 If the \code{fd} is 0, then the trace is sent to standard output,
    1237 otherwise it is sent to the specified file descriptor.  A call to
    1238 \code{psTraceSetDestination} automatically closes the file descriptor.
     1236If the \code{fd} is zero, then tracing is disabled.  Otherwise, the
     1237trace is sent to the specified file descriptor.  As a convenience, the
     1238following are defined:
     1239\begin{datatype}
     1240enum {
     1241    PS_TRACE_TO_NONE = 0,                ///< turn off all traces
     1242    PS_TRACE_TO_STDOUT = 1,              ///< trace to system's stdout
     1243    PS_TRACE_TO_STDERR = 2,              ///< trace to system's stderr
     1244};
     1245\end{datatype}
     1246%
     1247This arrangement mirros the file descriptors for standard input,
     1248output and error.  A call to \code{psTraceSetDestination}
     1249automatically closes an open file descriptor.
    12391250
    12401251The corresponding function
     
    12851296
    12861297Specifying a \code{format} of \code{NULL} turns off logging (equivalent
    1287 to calling \code{psLogSetDestination(PS_LOG_TO_NONE)}, whereas if the
     1298to calling \code{psTraceSetDestination(PS_TRACE_TO_NONE)}, whereas if the
    12881299\code{format} is \code{""}, then the format reverts to the default.
    12891300
     
    13521363\end{prototype}
    13531364%
    1354 If the \code{fd} is 0, then the log is sent to standard output,
    1355 otherwise it is sent to the specified file descriptor.  A call to
    1356 \code{psLogSetDestination} automatically closes an open file
    1357 descriptor.
     1365If the \code{fd} is zero, then logging is disabled.  Otherwise, the
     1366log is sent to the specified file descriptor.  As a convenience, the
     1367following are defined:
     1368\begin{datatype}
     1369enum {
     1370    PS_LOG_TO_NONE = 0,                  ///< turn off logging
     1371    PS_LOG_TO_STDOUT = 1,                ///< log to system's stdout
     1372    PS_LOG_TO_STDERR = 2,                ///< log to system's stderr
     1373};
     1374\end{datatype}
     1375%
     1376This arrangement mirros the file descriptors for standard input,
     1377output and error.  A call to \code{psLogSetDestination} automatically
     1378closes an open file descriptor.
    13581379
    13591380The corresponding function
Note: See TracChangeset for help on using the changeset viewer.