2.4.2.2. - Log Files
Special
log
files can be created for debugging or archiving purposes.
A regular
log
file is a file with a name beginning with the characters
log or ending with the characters
.log. All output sent to any device is sent to a
log
file.
A special type of
log
file is a
debugging
log
file.
That is a file with a name that begins with
dlog or ends with
.dlog.
Debugging messages
(generated when a value is assigned to the built-in variable
DEBUG) are only written to such a file, not to the screen or
any other file or device.
Another kind of
log
file is available (as of release 4.05.01) that records typed commands,
error messages and optional time stamps.
The file is intended to be useful to administrators trying to diagnose
user problems.
A file opened for output named
elog or that ends in
.elog is such a file.
Commands entered at the spec prompt are logged prefixed by a
#C. Error messages produced by the built-in C code, or generated by the
eprint
or
eprintf()
built-in keywords, are logged prefixed by a
#E. If time stamps are enabled (via the
spec_par()
"elog_timestamp" option), the UNIX epoch and the corresponding date string
are logged (at the time-stamp interval) prefixed by a
#T.
|