how to add time stamp in logfile

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rasmidas
    New Member
    • Jun 2007
    • 56

    #1

    how to add time stamp in logfile

    Hi,

    I am working in a project, which consists of C++ and shell scripting code.
    In the logfiles there is no time stamp.
    Please let me know how I can add time stamp to the logfiles.
    I want to prefix the date and time to all the lines of a logfile.
    Please help me. Thanks in advance.

    Regards.
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    I like the date class myself, but there are various ways to do this. Did you Google search "C++ date class"?

    Comment

    Working...