Bohulenkov Artem
Bohulenkov Artem

Reputation: 59

Writing trace to file

I have been trying to write the results by setting *trace-output* to file-generated stream like this

(setf *trace-output* (open "log.txt"))

but this fails with Error: Unexpected end of file on #<BASIC-FILE-CHARACTER-INPUT-STREAM.

So, the question is - is there any way to write results of trace to file ?

Upvotes: 1

Views: 426

Answers (1)

Barmar
Barmar

Reputation: 781245

(setf *trace-output* (open "log.txt" :direction :output))

OPEN opens files for input by default.

Upvotes: 5

Related Questions