Changeset 1407 for trunk/psLib/src/sys/psLogMsg.h
- Timestamp:
- Aug 6, 2004, 2:06:06 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psLogMsg.h (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psLogMsg.h
r1406 r1407 1 1 2 /** @file psLogMsg.h 2 3 * @brief Procedures for logging messages. … … 11 12 * @author George Gusciora, MHPCC 12 13 * 13 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-08-0 6 22:34:05$14 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-08-07 00:06:06 $ 15 16 * 16 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 17 18 */ 18 19 #if !defined(PS_LOG_MSG_H) 19 # define PS_LOG_MSG_H20 # include <stdarg.h>20 # define PS_LOG_MSG_H 21 # include <stdarg.h> 21 22 22 23 /** @addtogroup LogTrace … … 29 30 /// In future versions, this procedure will take a character string as an 30 31 /// argument which can specify more general log destinations. 31 int psLogSetDestination(const char * dest ///< Specifies where to send messages.32 int psLogSetDestination(const char *dest // /< Specifies where to send messages. 32 33 ); 33 34 34 35 35 /// This procedure sets the message level for future log messages. Subsequent … … 38 38 /// Ie. higher values set by this procedure will cause more log messages to 39 39 /// be displayed. 40 int psLogSetLevel(int level ///< Specifies the system log level40 int psLogSetLevel(int level // /< Specifies the system log level 41 41 ); 42 43 42 44 43 /// This procedure sets the log format for future log messages. The argument … … 47 46 /// Deleting a letter from the string will cause the associated information 48 47 /// to not be logged. 49 void psLogSetFormat(const char *fmt ///< Specifies the system log format48 void psLogSetFormat(const char *fmt // /< Specifies the system log format 50 49 ); 51 52 50 53 51 /// This procedure logs a message to the destination set by a prior … … 55 53 /// specified by a prior call to psLogSetLevel(). The message is specified 56 54 /// with a printf-stype string an arguments. 57 void psLogMsg(const char *name, ///< name of the log source58 int myLevel, ///< severity level of this log message59 const char *fmt, ... ///< printf-style format command55 void psLogMsg(const char *name, // /< name of the log source 56 int myLevel, // /< severity level of this log message 57 const char *fmt, ... // /< printf-style format command 60 58 ); 61 62 59 63 60 /// This procedure is functionally equivalent to psLogMsg(), except that 64 61 /// it takes a va_list as the message parameter, not a printf-style string. 65 void psLogMsgV(const char *name, ///< name of the log source66 int myLevel, ///< severity level of this log message67 const char *fmt, ///< printf-style format command68 va_list ap ///< varargs argument list62 void psLogMsgV(const char *name, // /< name of the log source 63 int myLevel, // /< severity level of this log message 64 const char *fmt, // /< printf-style format command 65 va_list ap // /< varargs argument list 69 66 ); 70 67 … … 74 71 PS_LOG_ERROR, 75 72 PS_LOG_WARN, 76 PS_LOG_INFO }; 73 PS_LOG_INFO 74 }; 77 75 78 76 ///< Destinations for log messages … … 80 78 PS_LOG_NONE, 81 79 PS_LOG_TO_STDERR, 82 PS_LOG_TO_STDOUT }; 80 PS_LOG_TO_STDOUT 81 }; 83 82 84 83 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
