Author Topic: Console interactivity  (Read 4071 times)

Offline bhwolf

  • Member
  • *
  • Posts: 53
Console interactivity
« on: 2014 March 07 21:12:38 »
I came across this thread while searching for similar asks:

http://pixinsight.com/forum/index.php?topic=5164.msg35619#msg35619

I boosted the process console max lines limit.  But, particularly when long and verbose scripts are running (like BP) it would be great to be able to scroll the process window while it is running (to examine a message that went flying by).  Or, be able to auto dump it to a log file, or similar to the above: allow me to scroll the window when the process is paused.

I realize these all have different performance tradeoffs...

Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 513
Re: Console interactivity
« Reply #1 on: 2014 March 08 06:49:22 »
Just type 'help log' on the console. You should get the required information. In fact here it is:

Code: [Select]
help log
The log command manages console log files.
Usage: log [<arg_list>]

-f=<file_path> | --file=<file_path>

      Specifies a console log file. <file_path> is a full path specification to
      a local file where all console output will be written after executing this
      command. If the file does not exist, a new file will be created at the
      specified path. If the file already exists, its contents will either be
      truncated or preserved, depending on the specified (or implicit) state of
      the -a argument (see below).

-a | --append

      This argument is only used along with -f to control the log file open mode.
      When specified, this argument selects the append log open mode: If the log
      file already exists, its contents will be preserved and newly generated
      console output will be written after the existing file data.
      (default=enabled)

-t | --truncate

      This argument is the inverse to -a: If the log file exists, it will be
      truncated to zero length and its previous contents will be lost.
      (default=disabled)

-q | --query

      Prints information about the current console log file (this also happens
      when no arguments are specified).

--enable

      Enables console output log. If no log file is currently open, this argument
      is ignored. Console output log is automatically enabled when a log file is
      open with the -f argument.

--disable

      Disables console output log. This argument is the inverse of --enable.

--close

      Flushes and closes the current console log file. This effectively cancels
      console logging until a log file is open again with the -f argument.

--flush

      Flushes the current console log file: Writes all pending console output to
      the log file, without closing it.

--help

      Displays this help and exits.

-- bitli