Javascript Logging

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

Moderator: Mr_Noodle

Javascript Logging Sat Apr 22, 2023 9:02 am • by scottfwalter
Hi,

I have a rule which has a "Passes Javascript" condition such as:

console.log('scott was here')
return /\d{4}-\d{2}-\d{2} - .*/.test(theFile.toString())

However, I never see "scott was here" in the Hazel log. I have enabled debug mode but not (log connection info or log prediction info).

Should I be able to see console.log messages in the Hazel log? If not is there another way to get messages to appear in the Hazel.log for debugging purposes?

Thanks, Scott.
scottfwalter
 
Posts: 47
Joined: Thu Jan 03, 2013 11:10 am

Re: Javascript Logging Mon Apr 24, 2023 9:03 am • by Mr_Noodle
Hazel will show stderr and stdout. I don't know where JS prints out console stuff. It could go to a system log.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support