- Timestamp:
- Nov 30, 2006, 11:03:06 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cppbase/bs_logger.cpp
r312 r341 15 15 16 16 /* 17 * This file Copyright (C) 1999-200 2Ulrich Mller.17 * This file Copyright (C) 1999-2006 Ulrich Mller. 18 18 * This program is free software; you can redistribute it and/or modify 19 19 * it under the terms of the GNU General Public License as published by … … 354 354 *@@changed V0.9.12 (2001-05-31) [umoeller]: added mutex 355 355 *@@changed V0.9.19 (2002-07-01) [umoeller]: added bldlevel to log 356 *@@changed WarpIN V1.0.14 (2006-11-30) [pr]: removed WarpIN specific header message 356 357 */ 357 358 … … 383 384 else 384 385 throw BSLoggerExcpt("pcszFilename is NULL."); 385 386 DATETIME dt;387 DosGetDateTime(&dt);388 389 fprintf(_File,390 "\n\nWarpIN " BLDLEVEL_VERSION " install log opened\n"391 "Date: %04d-%02d-%02d, Time: %02d:%02d:%02d\n"392 "--------------------------------\n",393 dt.year, dt.month, dt.day,394 dt.hours, dt.minutes, dt.seconds);395 386 } 396 387 … … 401 392 *@@added V0.9.9 (2001-03-30) [umoeller] 402 393 *@@changed V0.9.12 (2001-05-31) [umoeller]: added mutex 394 *@@changed WarpIN V1.0.14 (2006-11-30) [pr]: removed "install log closed" message 403 395 */ 404 396 … … 411 403 if (_File) 412 404 { 413 fprintf(_File, "\nInstall log closed.\n");414 405 fclose(_File); 415 406 _File = NULL; … … 441 432 442 433 /* 443 *@@ Write :444 * 445 * NOTE: This does not append\n for each string.434 *@@ WriteV: 435 * 436 * NOTE: This appends \n for each string. 446 437 * 447 438 *@@added V0.9.9 (2001-03-30) [umoeller] … … 456 447 BSLock lock(G_mtxFileLoggers); // V0.9.20 (2002-07-06) [umoeller] 457 448 458 _Pmpf(("BSFileLogger::Append: got \"%s\"", pcszFormat));459 460 449 DATETIME dt; 461 450 DosGetDateTime(&dt); … … 473 462 } 474 463 475 int iWritten =vfprintf(_File, pcszFormat, arg_ptr);464 vfprintf(_File, pcszFormat, arg_ptr); 476 465 fprintf(_File, "\n"); 477 466 } 478 467 479 468 /* 480 *@@ Append:469 *@@ Write: 481 470 * 482 471 *@@added V0.9.18 (2002-03-08) [umoeller] … … 492 481 } 493 482 483 /* 484 *@@ WriteRawV: 485 * 486 *@@added WarpIN V1.0.14 (2006-11-30) [pr] 487 */ 488 489 void BSFileLogger::WriteRawV(const char *pcszFormat, // in: format string 490 va_list arg_ptr) 491 { 492 BSLock lock(G_mtxFileLoggers); 493 494 vfprintf(_File, pcszFormat, arg_ptr); 495 } 496 497 /* 498 *@@ WriteRaw: 499 * 500 *@@added WarpIN V1.0.14 (2006-11-30) [pr] 501 */ 502 503 void BSFileLogger::WriteRaw(const char *pcszFormat, // in: format string 504 ...) // in: variable arguments 505 { 506 va_list arg_ptr; 507 va_start(arg_ptr, pcszFormat); 508 WriteRawV(pcszFormat, arg_ptr); 509 va_end(arg_ptr); 510 } 511
Note:
See TracChangeset
for help on using the changeset viewer.