Results 1 to 2 of 2

Thread: Adding Headers to a log file

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Ireland
    Posts
    224

    Question

    I have a log file that I have created to in order examine how effectively my application is running. I have called this debug.log. What I am trying to do, is set it up so that each time the application is run the log file is updated by with the time and the particular user that is logged in at that time. Any ideas??????

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    When the user logs in, simply Append to the file the user name, and the "Now" statement

    Code:
    printToLog (username)
    printToLog (Now)
    Iain, thats with an i by the way!

Posting Permissions

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



Click Here to Expand Forum to Full Width