Author Topic: Process console log to file  (Read 2779 times)

Offline Greg Schwimer

  • PixInsight Addict
  • ***
  • Posts: 210
Process console log to file
« on: 2016 September 21 18:13:44 »
Does anyone know if it is possible to configure the process console such that it will tee whatever is written to it during processing to a log file?
- Greg
Scottsdale, Arizona, USA

Offline Herbert_W

  • PixInsight Addict
  • ***
  • Posts: 204
    • Skypixels - Astrophotography by Herbert Walter
Re: Process console log to file
« Reply #1 on: 2016 September 21 23:25:00 »
Hi,

1.   
You can enable a console log file with the log command. Enter this command for full information: help log

Basically, you enable console logging with a command like:

log -f=/path/to/log/file.log

log -f=C:/mylogfile.log   

2.   
and you can close the log file with:

log --close

Alternatively, you can force writing of all pending log file data without closing the file:

log --flush


3.   
You can also enable or disable logging temporarily with the
--enable and --disable arguments.


4.
The generated log file can be edited with PixInsight's Script Editor.

Source: http://pixinsight.com/forum/index.php?topic=6799.0  #3

Best regards!
Herbert

Offline Greg Schwimer

  • PixInsight Addict
  • ***
  • Posts: 210
Re: Process console log to file
« Reply #2 on: 2016 September 22 00:13:38 »
Fantastic. Thanks!
- Greg
Scottsdale, Arizona, USA

Offline vicent_peris

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 988
    • http://www.astrofoto.es/
Re: Process console log to file
« Reply #3 on: 2016 September 22 00:49:38 »
Hi,

Please remember that you can type the "help" command in the Process Console to get a list of all the currently available commands.


Best regards,
Vicent.