Greetings.
Is there a way that we can access (READ) the current APL Desktop Log File (session log) ?
I'm working on a tool that might help monitor student APL programmers by reading their current desktop log and sending it to the instructor via Internet.
Perhaps it is an external Windows file ?
Thanks!
//W
External READ access to APL desktop log file
Forum rules
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !
- AndyS|Dyalog
- Posts: 263
- Joined: Tue May 12, 2009 6:06 pm
Re: External READ access to APL desktop log file
Hi Woody !
You can get the current contents of the session log with
The session log is saved in the file pointed to by the LOG_FILE configuration parameter and its size is set by LOG_SIZE.
There is no direct way to read a log file, but you could point to a different one by setting LOG_FILE and start Dyalog and query the log as above. And I would try to use a Dyalog interpreter from the same version/width/edition/platform to read the file - we have not tested what happens if you try to use a different Dyalog interpreter; it may work, but we certainly won't guarantee that and if I had my way, we would reject attempts to do so.
Note that the location of the current log file is cached when Dyalog starts, so if you do want to point to a different file, you'll have to change LOG_FILE and restart Dyalog - and we don't support fiddling with the active log file from outside the active Dyalog process.
You can get the current contents of the session log with
txt←'⎕se'⎕WG'Log'
The session log is saved in the file pointed to by the LOG_FILE configuration parameter and its size is set by LOG_SIZE.
There is no direct way to read a log file, but you could point to a different one by setting LOG_FILE and start Dyalog and query the log as above. And I would try to use a Dyalog interpreter from the same version/width/edition/platform to read the file - we have not tested what happens if you try to use a different Dyalog interpreter; it may work, but we certainly won't guarantee that and if I had my way, we would reject attempts to do so.
Note that the location of the current log file is cached when Dyalog starts, so if you do want to point to a different file, you'll have to change LOG_FILE and restart Dyalog - and we don't support fiddling with the active log file from outside the active Dyalog process.