Changeset 5072 for trunk/psLib/test/sys/tst_psLogMsg.c
- Timestamp:
- Sep 19, 2005, 4:43:53 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/sys/tst_psLogMsg.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sys/tst_psLogMsg.c
r4979 r5072 26 26 }, 27 27 { 28 testLogMsg02, 2, "psLogSet Level()", 0, false28 testLogMsg02, 2, "psLogSet/GetLevel()", 0, false 29 29 }, 30 30 { … … 35 35 }, 36 36 { 37 testLogMsg05, 5, "psLogSet Destination()", 0, false37 testLogMsg05, 5, "psLogSet/GetDestination()", 0, false 38 38 }, 39 39 { … … 107 107 psLogSetLevel(4); 108 108 psLogMsg(__func__, 4, "This should be displayed (level %d)\n", 4); 109 psLogMsg(__func__, 4, "This should display level 4 logging -> level %d\n", psLogGetLevel() ); 109 110 110 111 return 0; … … 189 190 // psLogSetDestination("none"); 190 191 psLogSetDestination(0); 192 printf(" File Descriptor = %d \n", psLogGetDestination() ); 191 193 for (i=0;i<10;i++) { 192 194 psLogMsg(__func__, i, "Hello World! My level is %d\n", i); … … 196 198 // psLogSetDestination("dest:stderr"); 197 199 psLogSetDestination(2); 200 printf(" File Descriptor = %d \n", psLogGetDestination() ); 198 201 for (i=0;i<10;i++) { 199 202 psLogMsg(__func__, i, "Hello World! My level is %d\n", i); … … 203 206 // psLogSetDestination("dest:stdout"); 204 207 psLogSetDestination(1); 208 printf(" File Descriptor = %d \n", psLogGetDestination() ); 205 209 for (i=0;i<10;i++) { 206 210 psLogMsg(__func__, i, "Hello World! My level is %d\n", i); … … 211 215 // psLogSetDestination("file:log.txt"); 212 216 psLogSetDestination(fd); 217 printf(" File Descriptor = %d \n", psLogGetDestination() ); 213 218 for (i=0;i<10;i++) { 214 219 psLogMsg(__func__, i, "Hello World! My level is %d\n", i);
Note:
See TracChangeset
for help on using the changeset viewer.
