Changeset 497 for trunk/psLib/src/sysUtils/psLogMsg.c
- Timestamp:
- Apr 21, 2004, 11:14:41 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sysUtils/psLogMsg.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note:
See TracChangeset
for help on using the changeset viewer.
