Changeset 4952
- Timestamp:
- Sep 6, 2005, 2:36:12 PM (21 years ago)
- Location:
- trunk/psLib/src/sys
- Files:
-
- 2 edited
-
psLogMsg.c (modified) (7 diffs)
-
psLogMsg.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psLogMsg.c
r4951 r4952 12 12 * @author GLG, MHPCC 13 13 * 14 * @version $Revision: 1. 49$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-09-07 00: 15:48$14 * @version $Revision: 1.50 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-09-07 00:36:12 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 144 144 */ 145 145 /* 146 146 147 147 if (strcmp(protocol, "dest") == 0) { 148 148 if (strcmp(location, "stderr") == 0) { … … 165 165 } else if (strcmp(protocol, "file") == 0) { 166 166 FILE *file = fopen(location, "w"); 167 167 168 168 if (file == NULL) { 169 169 psError(PS_ERR_IO, true, PS_ERRORTEXT_psLogMsg_OPEN_FILE_FAILED, … … 195 195 NULL. 196 196 *****************************************************************************/ 197 voidpsLogSetFormat(const char *format)197 bool psLogSetFormat(const char *format) 198 198 { 199 199 // assume none. … … 206 206 // if fmt is NULL, no logging is desired. 207 207 if (format == NULL) { 208 return ;208 return false; 209 209 } 210 210 … … 241 241 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 242 242 PS_ERRORTEXT_psLogMsg_UNKNOWN_KEY, *ptr); 243 break;243 return false; 244 244 } 245 245 } … … 248 248 if (!logMsg) { 249 249 psTrace("utils.logMsg", 1, "You must at least log error messages (You chose \"%s\")", format); 250 } 250 251 } 252 return true; 251 253 } 252 254 -
trunk/psLib/src/sys/psLogMsg.h
r4951 r4952 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1.3 0$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-09-07 00: 15:48$13 * @version $Revision: 1.31 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-09-07 00:36:12 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 54 54 * to not be logged. This procedure does not alter the order in which 55 55 * the messages are displayed. 56 * 57 * @return bool: True if successful, otherwise false. 56 58 */ 57 voidpsLogSetFormat(59 bool psLogSetFormat( 58 60 const char *format ///< Specifies the system log format 59 61 );
Note:
See TracChangeset
for help on using the changeset viewer.
