Page 1 of 1

Logging from within JavaScript

PostPosted: Mon Nov 05, 2018 12:51 pm
by kireevco
Hello,

I would like to be able to log custom debug information from external / embedded scripts. Is there any workaround for a log to appear in Hazel.log?

Thanks.

Re: Logging from within JavaScript

PostPosted: Mon Nov 05, 2018 1:44 pm
by Mr_Noodle
You mean via the Run JavaScript action or Run Shellscript with JavaScript as the language?

For the former, I believe anything you log goes to the normal Console log. For shellscripts, it will capture stdout and stderr and print them in Hazel's log if you enable debug mode.