Helper function for the feedback function to also show the messages to the gui/user via the browser console. Internal use. Use the robust 'feedback' function instead.
feedback_to_logjs(print_this, logfile_dir, headless)
(Optional, String, default: "")
(Optional, String, default: "tempdir()") The absolute path to folder where the logfile will be stored.
(Optional, Boolean, default: TRUE) Indicating, if the function is run only in the console (headless = TRUE) or on a GUI frontend (headless = FALSE).
No return value, called for side effects (see description)