View in color | License | Download script | History | Other scripts by: ajmartin |
30-Apr 15:46 UTC
[0.05] 10.646k
[0.05] 10.646k
log.rREBOL [
Title: "Log"
Date: 20-Dec-2002
Name: 'Log
Version: 1.0.0
File: %log.r
Author: "Andrew Martin"
Purpose: "Logs Rebol values to a file."
eMail: %Al--Bri--xtra--co--nz
Web: http://valley.150m.com
library: [
level: 'beginner
platform: none
type: 'tool
domain: none
tested-under: none
support: none
license: none
see-also: none
]
]
Log: function [
{Logs Rebol values to a file.}
Value [any-type!] "The value to log."
/Clear "Clears (by deleting) the current log file."
] [File] [
File: %Log.txt
if Clear [
delete File
]
write/append/lines File reform [
now/time mold :Value
]
:Value
] Notes
|