Copyright 2005-2006, Stuart Udall
version 0.04: June 11, 2006
STAMP is a simple tool to create logfile entries with timestamps. Often a script (or batchfile) will want to report at various stages of its progress. STAMP allows the script to make a one-line entry to STDOUT (the console) which can then be redirected to a logfile.
STAMP automatically prefixes the current date and time to the logfile entry.
STAMP also inserts a single "flag" character at the very beginning of the entry.
Finally, STAMP can insert a "program identifier" into the entry, so that the script making the entry can identify itself.
STAMP is fully command-line driven, requires no extra files, and does not need to be installed in any particular location.
There is a feedback form here.
stamp <flag> <message> [/logsrc:<source>]
stamp ! An error has been detected. /logsrc:testtool >> logfile.log
Results in this output appended to the file "logfile.log" (your timestamp will vary):
! testtool Aug 16, 2005 14:59:46 An error has been detected.
Note: The supplied STAMP.EXE is an improved workalike of "STAMP.COM", a 12k program written on February 15, 1987 by an unknown author. I have used STAMP.COM for many years, and only retired it when I started needing to distribute a timestamper. Greetz to you, whoever you are!