Logging from within JavaScript

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Logging from within JavaScript 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.
kireevco
 
Posts: 5
Joined: Sun Nov 04, 2018 11:06 pm

Re: Logging from within JavaScript 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.
Mr_Noodle
Site Admin
 
Posts: 11240
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support

cron