
Is there a way to tell if I’m in the background expander?
I want to write to a log during read-syntax
. The writing fails during background expansion (because DrRacket sets a security guard). I can watch for the failure, but I’d rather not even try to write the log if I can.

Does background expansion use a particular logger? If so you might be able to query it

yes — do I query by sending it a message?

That may depend on the logger. Maybe you can register as a log receiver make-log-receiver
and look for events

or maybe log-level?
can help also?

ok, thanks

sorry, that’s rather exploratory, good luck :slightly_smiling_face:

Why not use Racket logging, and then redirect that to the log at a higher level?

that is a better idea, but I think I’ll have to wait until summer to do it

@arthertz has joined the channel
