Page 1 of 1

Javascript Logging

PostPosted: 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.

Re: Javascript Logging

PostPosted: 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.