Go to the source code of this file.
Definition at line 16 of file logtofile.tcl.
00016 { 00017 set logfile "mylog.log" 00018 set msg "\[[clock format [clock seconds]]\] $txt" 00019 set f [open $logfile {WRONLY CREAT APPEND}] ;# instead of "a" 00020 fconfigure $f -encoding utf-8 00021 puts $f $msg 00022 close $f 00023 }