home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 2 / ctrom_ii_b.zip / ctrom_ii_b / PROGRAM / PASCAL / LOG_01 / LOGFILE.DOC < prev    next >
Text File  |  1988-07-28  |  1KB  |  46 lines

  1.  
  2.  
  3. LSD - LogFile
  4. =============
  5.  
  6.  
  7. The log file is like Turbo's printer unit, except that it writes to a log file
  8. instead of the printer.
  9.  
  10. The unit is simple enough to use:
  11.   1) Add LogFile in your uses statement
  12.   2) when ever you wanto, you may write to log like writeln ( log, 'a=',a:4 )
  13.  
  14. The unit takes care of opening and closing the log file.  The file is always
  15. called DEBUG.LOG, and is created in the current directory if it does not
  16. exist, otherwise it is appended.  If anything goes wrong in opening the file,
  17. you get a warning text, and the log is redirected to NUL.  To separate the
  18. loggings of different runs the unit prints a header line with date and time
  19. every time the log is opened.
  20.  
  21.  
  22. Legal stuff:  This unit is placed in ShareWare, so please feel free to use it
  23. and give copies.  If you find it useful, then a small sum of money will be
  24. appreciated.  If you need an invoice, I'll be more than happy to provide one.
  25.  
  26.  
  27.  
  28. │  ┌─ ─┐  Heikki Levanto  +45 6 156270  Rydevaenget 35,2,th,DK-8210 │  ┌─ ─┐
  29. └─ ─┘ ─┘  Levanto Software Development  Aarhus, Denmark  2:505/20.3 └─ ─┘ ─┘
  30.  
  31.  
  32.  
  33.  
  34. INTERFACE
  35.  
  36. Uses
  37.   Crt,        { TURBO screen and sound }
  38.   Dos ;       { TURBO Dos calls for date and time }
  39.  
  40. Var
  41.   Log    : text ;
  42.  
  43. IMPLEMENTATION
  44.  
  45.  
  46.