Changeset 498
- Timestamp:
- Apr 21, 2004, 11:29:20 AM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
sys/psLogMsg.c (modified) (3 diffs)
-
sysUtils/psLogMsg.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psLogMsg.c
r497 r498 19 19 #define MAX_LOG_LEVEL 9 20 20 static int logDest = PS_LOG_TO_STDERR; // where to log messages 21 static int logLevel = PS_LOG_INFO; // log all messages at this or above21 static int logLevel = PS_LOG_INFO; // log all messages at this or above 22 22 /***************************************************************************** 23 23 psSetLogLevel(): Set the current log level and return old level. … … 82 82 static int log_msg = 1; 83 83 /***************************************************************************** 84 psSetLogFormat(): Set the format of psLogMsg output. 85 86 More precisely, provide a string consisting of the letters 87 H (host) 88 L (level) 89 M (message) 90 N (name) 91 T (time). 92 The default is "HLMNT" 84 psSetLogFormat(): Set the format of psLogMsg output. More precisely, 85 provide a string consisting of the letters {H (host), L (level), M 86 (message), N (name), T (time)}. The default is "HLMNT". This string 87 determines whether or not they associated type of information will be 88 included in message logs. It does not determine the order in which that 89 information will appear (that order is fixed). 93 90 Input: 94 fmt: a string specifying the format.91 fmt: a string specifying the format. 95 92 Output: 96 93 none. … … 132 129 // psError(__func__, PS_ERR_UNKNOWN, 1, 133 130 // "Unknown logging keyword %c", *ptr); 131 psError(__func__, "Unknown logging keyword %c", *ptr); 134 132 break; 135 133 } -
trunk/psLib/src/sysUtils/psLogMsg.c
r497 r498 19 19 #define MAX_LOG_LEVEL 9 20 20 static int logDest = PS_LOG_TO_STDERR; // where to log messages 21 static int logLevel = PS_LOG_INFO; // log all messages at this or above21 static int logLevel = PS_LOG_INFO; // log all messages at this or above 22 22 /***************************************************************************** 23 23 psSetLogLevel(): Set the current log level and return old level. … … 82 82 static int log_msg = 1; 83 83 /***************************************************************************** 84 psSetLogFormat(): Set the format of psLogMsg output. 85 86 More precisely, provide a string consisting of the letters 87 H (host) 88 L (level) 89 M (message) 90 N (name) 91 T (time). 92 The default is "HLMNT" 84 psSetLogFormat(): Set the format of psLogMsg output. More precisely, 85 provide a string consisting of the letters {H (host), L (level), M 86 (message), N (name), T (time)}. The default is "HLMNT". This string 87 determines whether or not they associated type of information will be 88 included in message logs. It does not determine the order in which that 89 information will appear (that order is fixed). 93 90 Input: 94 fmt: a string specifying the format.91 fmt: a string specifying the format. 95 92 Output: 96 93 none. … … 132 129 // psError(__func__, PS_ERR_UNKNOWN, 1, 133 130 // "Unknown logging keyword %c", *ptr); 131 psError(__func__, "Unknown logging keyword %c", *ptr); 134 132 break; 135 133 }
Note:
See TracChangeset
for help on using the changeset viewer.
