Changeset 7587 for trunk/psLib/test/sys/tst_psLogMsg.c
- Timestamp:
- Jun 16, 2006, 1:01:10 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/sys/tst_psLogMsg.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sys/tst_psLogMsg.c
r5072 r7587 234 234 close(fd); 235 235 236 int fd2 = creat(" /eva/log.txt", 0666);237 printf("--------------- psLogSetDestination(""file: /eva/log.txt"") ----------\n");236 int fd2 = creat("eva/log.txt", 0666); 237 printf("--------------- psLogSetDestination(""file:eva/log.txt"") ----------\n"); 238 238 // psLogSetDestination("file:/eva/log.txt"); 239 239 psLogSetDestination(fd2); … … 261 261 262 262 printf("------------- psMessageDestination(PS_LOG_TO_STDERR) -------------\n"); 263 psMessageDestination(" dest:stderr");263 psMessageDestination("stderr"); 264 264 // psLogSetDestination(2); 265 265 for (i=0;i<10;i++) { 266 psLogMsg(__func__, i, "Hello World! My level is %d \n", i);266 psLogMsg(__func__, i, "Hello World! My level is %d - stderr\n", i); 267 267 } 268 268 269 269 printf("------------- psMessageDestination(PS_LOG_TO_STDOUT) -------------\n"); 270 psMessageDestination(" dest:stdout");270 psMessageDestination("stdout"); 271 271 // psLogSetDestination(1); 272 272 for (i=0;i<10;i++) { 273 psLogMsg(__func__, i, "Hello World! My level is %d \n", i);273 psLogMsg(__func__, i, "Hello World! My level is %d - stdout\n", i); 274 274 } 275 275 … … 296 296 close(fd); 297 297 298 int fd2 = creat(" /eva/log2.txt", 0666);299 printf("--------------- psMessageDestination(""file: /eva/log.txt"") ----------\n");300 psMessageDestination("file: /eva/log2.txt");298 int fd2 = creat("eva/log2.txt", 0666); 299 printf("--------------- psMessageDestination(""file:eva/log.txt"") ----------\n"); 300 psMessageDestination("file:eva/log2.txt"); 301 301 // psLogSetDestination(fd2); 302 302 for ( i=0;i<10;i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
