Results 1 to 2 of 2

Thread: NLDSimpleLogFile

  1. #1

    NLDSimpleLogFile

    ------------
    De sources van NLDDanyUtils zijn te vinden in:
    ftp://ftp.nldelphi.com/public/OpenSo.../NLDDanyUtils/
    ------------

    Hoi,

    Er is weer een nieuwe unit. Maakt het gebruik van logfiles wel erg gemakkelijk...
    De naam van de logfile wordt afgeleid uit de naam van de applicatie. Er zijn per applicatie meerdere logfiles mogelijk.

    Dit is de interface:
    Code:
    { The logfile always resides in the startup directory of the application.
    The name of the logfile used depends on the value of the "No" parameter.
    If the parameter is zero (the default), then the logfilename is simply the
    name of the application (without its extension) with extension ".log"
    (e.g. "Application.log".)
    If "No" is > 0 then the same is valid but in the logfilename also "No"
    is incorporated, e.g. "Application15.log" (if No = 15).
    }
    
    procedure AddToLogFile(S: String; No: Integer = 0); overload;
    // Appends "S" to the logfile
    
    procedure AddToLogFile(S: TStrings; No: Integer = 0); overload;
    // Appends all lines in "S" to the logfile
    
    procedure ClearLogFile(No: Integer = 0);
    // Empties the logfile
    
    function  LogFileName(No: Integer = 0): string;
    // Returns the name of the logfile, e.g. for viewing purposes
    
    Veel plezier
    Last edited by Dany; 23-Nov-06 at 20:22.

  2. #2
    Vriendelijke groeten,
    Dany

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •