IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 9, 2004, 2:09:55 PM (22 years ago)
Author:
gusciora
Message:

Renamed psLog messages, commented the psHash code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psLogMsg.h

    r497 r964  
    1515 */
    1616
    17 /// Sets the log destination
    18 int psSetLogDestination(int dest);
     17/// This procedure sets the destination for future log messages.  Currently
     18/// the destination is specified by an integer which can have the following
     19/// pre-defined values: PS_LOG_NONE, PS_LOG_TO_STDOUT, and PS_LOG_TO_STDERR.
     20/// IN future versions, this procedure will take a character string as an
     21/// argument which can specify more general log destinations.
     22int psLogSetDestination(int dest);
    1923
    20 /// Sets the log level
    21 int psSetLogLevel(int level);
     24/// This procedure sets the global level for future log messages.  Future
     25/// log messages, each with a log level of mylevel, will only be logged if
     26/// their mylevel is less than the current log level set by this procedure.
     27/// Ie. higher values set by this procedure will cause more log messages to
     28/// be displayed.
     29int psLogSetLevel(int level);
    2230
    23 /// sets the log format
    24 void psSetLogFormat(const char *fmt);
     31/// This procedure sets the log format for future log messages.  The argument
     32/// must be a character string consistsing of the letters H (host), L
     33/// (level), M (message), N (name), and T (time).  The default is "THLNM".
     34/// Deleting a letter from the string will cause the associated information
     35/// to not be logged.
     36void psLogSetFormat(const char *fmt);
    2537
    26 /// Logs a message
     38
     39/// This procedure logs a message to the destination set by a prior
     40/// call to psLogSetDestination(), if myLevel is less than the level
     41/// specified by a prior call to psLogSetLevel().  The message is specified
     42/// with a printf-stype string an arguments.
    2743void psLogMsg(const char *name,     ///< name of the log source
    2844              int myLevel,          ///< severity level of this log message
     
    3046;
    3147
    32 /// Logs a message from varargs
     48
     49
     50/// This procedure is functionally equivalent to psLogMsg(), except that
     51/// it takes a va_list as the message paramater, not a printf-style string.
    3352void psVLogMsg(const char *name, ///< name of the log source
    3453               int myLevel,      ///< severity level of this log message
Note: See TracChangeset for help on using the changeset viewer.