Changeset 497
- Timestamp:
- Apr 21, 2004, 11:14:41 AM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 6 edited
-
sys/psError.c (modified) (2 diffs)
-
sys/psLogMsg.c (modified) (7 diffs)
-
sys/psLogMsg.h (modified) (1 diff)
-
sysUtils/psError.c (modified) (2 diffs)
-
sysUtils/psLogMsg.c (modified) (7 diffs)
-
sysUtils/psLogMsg.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psError.c
r496 r497 10 10 * @author Eric Van Alst, MHPCC 11 11 * 12 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-04-21 21: 07:30$12 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-04-21 21:14:41 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 65 65 66 66 // Call logging function with PS_LOG_ERROR level 67 p _psVLogMsg(name, PS_LOG_ERROR, fmt, argPtr);67 psVLogMsg(name, PS_LOG_ERROR, fmt, argPtr); 68 68 69 69 // Clean up stack after variable argument has been used -
trunk/psLib/src/sys/psLogMsg.c
r494 r497 21 21 static int logLevel = PS_LOG_INFO; // log all messages at this or above 22 22 /***************************************************************************** 23 psSetLogLevel(): Set the current log level and return old level.24 Input:23 psSetLogLevel(): Set the current log level and return old level. 24 Input: 25 25 level (int): the new log level. 26 Output:26 Output: 27 27 none 28 Return:28 Return: 29 29 The old log level. 30 30 *****************************************************************************/ … … 46 46 47 47 /***************************************************************************** 48 psSetLogDestination(): sets the destination where log messages will be48 psSetLogDestination(): sets the destination where log messages will be 49 49 sent to. 50 Input:50 Input: 51 51 dest (int): the new log destination 52 Output:52 Output: 53 53 None. 54 Return:54 Return: 55 55 An integer specifying the old log destination. 56 56 *****************************************************************************/ … … 131 131 // GUS: figure out the psError() format: 132 132 // psError(__func__, PS_ERR_UNKNOWN, 1, 133 // "Unknown logging keyword %c", *ptr);133 // "Unknown logging keyword %c", *ptr); 134 134 break; 135 135 } … … 154 154 #endif 155 155 /***************************************************************************** 156 p _psVLogMsg(): This routine sends the message, which is a printf style156 psVLogMsg(): This routine sends the message, which is a printf style 157 157 string specified in the "..." argument, to the current message log 158 158 destination with the severity specified by the "level" argument. … … 161 161 level 162 162 fmt 163 ap p_psVLogMsg163 ap 164 164 Output: 165 165 none … … 167 167 NULL. 168 168 *****************************************************************************/ 169 void p _psVLogMsg(const char *name,170 int level,171 const char *fmt,172 va_list ap)169 void psVLogMsg(const char *name, 170 int level, 171 const char *fmt, 172 va_list ap) 173 173 { 174 174 static int first = 1; … … 304 304 305 305 va_start(ap, fmt); 306 p _psVLogMsg(name, level, fmt, ap);306 psVLogMsg(name, level, fmt, ap); 307 307 va_end(ap); 308 308 } -
trunk/psLib/src/sys/psLogMsg.h
r482 r497 25 25 26 26 /// Logs a message 27 void psLogMsg(const char *name, ///< name of the log source28 int myLevel, ///< severity level of this log message27 void psLogMsg(const char *name, ///< name of the log source 28 int myLevel, ///< severity level of this log message 29 29 const char *fmt, ...) ///< printf-style format command 30 30 ; 31 31 32 32 /// Logs a message from varargs 33 void p _psVLogMsg(const char *name, ///< name of the log source34 int myLevel,///< severity level of this log message35 const char *fmt, ///< printf-style format command36 va_list ap)///< varargs argument list33 void psVLogMsg(const char *name, ///< name of the log source 34 int myLevel, ///< severity level of this log message 35 const char *fmt, ///< printf-style format command 36 va_list ap) ///< varargs argument list 37 37 ; 38 38 -
trunk/psLib/src/sysUtils/psError.c
r496 r497 10 10 * @author Eric Van Alst, MHPCC 11 11 * 12 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-04-21 21: 07:30$12 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-04-21 21:14:41 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 65 65 66 66 // Call logging function with PS_LOG_ERROR level 67 p _psVLogMsg(name, PS_LOG_ERROR, fmt, argPtr);67 psVLogMsg(name, PS_LOG_ERROR, fmt, argPtr); 68 68 69 69 // Clean up stack after variable argument has been used -
trunk/psLib/src/sysUtils/psLogMsg.c
r494 r497 21 21 static int logLevel = PS_LOG_INFO; // log all messages at this or above 22 22 /***************************************************************************** 23 psSetLogLevel(): Set the current log level and return old level.24 Input:23 psSetLogLevel(): Set the current log level and return old level. 24 Input: 25 25 level (int): the new log level. 26 Output:26 Output: 27 27 none 28 Return:28 Return: 29 29 The old log level. 30 30 *****************************************************************************/ … … 46 46 47 47 /***************************************************************************** 48 psSetLogDestination(): sets the destination where log messages will be48 psSetLogDestination(): sets the destination where log messages will be 49 49 sent to. 50 Input:50 Input: 51 51 dest (int): the new log destination 52 Output:52 Output: 53 53 None. 54 Return:54 Return: 55 55 An integer specifying the old log destination. 56 56 *****************************************************************************/ … … 131 131 // GUS: figure out the psError() format: 132 132 // psError(__func__, PS_ERR_UNKNOWN, 1, 133 // "Unknown logging keyword %c", *ptr);133 // "Unknown logging keyword %c", *ptr); 134 134 break; 135 135 } … … 154 154 #endif 155 155 /***************************************************************************** 156 p _psVLogMsg(): This routine sends the message, which is a printf style156 psVLogMsg(): This routine sends the message, which is a printf style 157 157 string specified in the "..." argument, to the current message log 158 158 destination with the severity specified by the "level" argument. … … 161 161 level 162 162 fmt 163 ap p_psVLogMsg163 ap 164 164 Output: 165 165 none … … 167 167 NULL. 168 168 *****************************************************************************/ 169 void p _psVLogMsg(const char *name,170 int level,171 const char *fmt,172 va_list ap)169 void psVLogMsg(const char *name, 170 int level, 171 const char *fmt, 172 va_list ap) 173 173 { 174 174 static int first = 1; … … 304 304 305 305 va_start(ap, fmt); 306 p _psVLogMsg(name, level, fmt, ap);306 psVLogMsg(name, level, fmt, ap); 307 307 va_end(ap); 308 308 } -
trunk/psLib/src/sysUtils/psLogMsg.h
r482 r497 25 25 26 26 /// Logs a message 27 void psLogMsg(const char *name, ///< name of the log source28 int myLevel, ///< severity level of this log message27 void psLogMsg(const char *name, ///< name of the log source 28 int myLevel, ///< severity level of this log message 29 29 const char *fmt, ...) ///< printf-style format command 30 30 ; 31 31 32 32 /// Logs a message from varargs 33 void p _psVLogMsg(const char *name, ///< name of the log source34 int myLevel,///< severity level of this log message35 const char *fmt, ///< printf-style format command36 va_list ap)///< varargs argument list33 void psVLogMsg(const char *name, ///< name of the log source 34 int myLevel, ///< severity level of this log message 35 const char *fmt, ///< printf-style format command 36 va_list ap) ///< varargs argument list 37 37 ; 38 38
Note:
See TracChangeset
for help on using the changeset viewer.
