ColinThomas
Member
Hi,
I know that you can redirect the console log to a file, by typing the following in the Process Console
log -f=/filePath/file.log
There running a javascript from the script editor....
and closing the file from the Process Console using
log --close
This will create a file like:
[2020-05-03 14:11:25] ************************************************************
[2020-05-03 14:11:25] PixInsight Core 01.08.06.1457 Ripley (x64)
[2020-05-03 14:11:25] ************************************************************
[2020-05-03 14:11:52]
[2020-05-03 14:11:52] run --execute-mode=auto "/Users/colin/Desktop/PixInsight_Scripts/NewScriptFile6.js"
[2020-05-03 14:11:52]
[2020-05-03 14:11:52] Processing script file: /Users/colin/Desktop/PixInsight_Scripts/NewScriptFile6.js
[2020-05-03 14:11:52] Hello World
[2020-05-03 14:11:52]
which can capture the javascript output.
Is it possible to facilitate this sort of logging from Javascript directly, (or give javascript access to the Process Console in some other manner). I would like the Javascript to monitor the output of a given process and vary an input to it until a desired output parameter is achieved..
Any pointers welcomed.
Clear skies and stay safe
Colin
I know that you can redirect the console log to a file, by typing the following in the Process Console
log -f=/filePath/file.log
There running a javascript from the script editor....
and closing the file from the Process Console using
log --close
This will create a file like:
[2020-05-03 14:11:25] ************************************************************
[2020-05-03 14:11:25] PixInsight Core 01.08.06.1457 Ripley (x64)
[2020-05-03 14:11:25] ************************************************************
[2020-05-03 14:11:52]
[2020-05-03 14:11:52] run --execute-mode=auto "/Users/colin/Desktop/PixInsight_Scripts/NewScriptFile6.js"
[2020-05-03 14:11:52]
[2020-05-03 14:11:52] Processing script file: /Users/colin/Desktop/PixInsight_Scripts/NewScriptFile6.js
[2020-05-03 14:11:52] Hello World
[2020-05-03 14:11:52]
which can capture the javascript output.
Is it possible to facilitate this sort of logging from Javascript directly, (or give javascript access to the Process Console in some other manner). I would like the Javascript to monitor the output of a given process and vary an input to it until a desired output parameter is achieved..
Any pointers welcomed.
Clear skies and stay safe
Colin