Logging

Hi,

I am trying to understand the logging functionality but a simple example from the cookbook doesn’t seem to work.

In the server

q test -l 

t:(name:();age:())

\p 6000

In the client

h: hopen `:localhost:6000

h"t insert (one;1)"

I can see the rows in the server and the test.log is created. But once i quit the server and start again with

q test -l 

it throws 

'type and quits the process

I am using 3.2 version of 32bit on OS x. I can’t figure out what is wrong with my setup

Thanks

Bharani

you can see what is in the logfile

q)get`:test.log

t insert (one;1)”

it is missing your definition for t.

To force local commands to be logged, you need to execute them through a handle. Using localhandle 0

q)0"t:(name:();age:())"

or better, put your init q code in test.q, which is loaded before playing back test.log