Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have one Application if it is fails my Document, i want store the error information in Log file..
How to create log file...
By default this is One way
Settings ---> Document Pro-----> Check GenerateLogFile and TimeStamp
any other method, i want store particular error
Thanks
Hi.
Generate table with errors or info messages and then store it with 'Store' statement. It would be your own log-file.
You can use
SET ErrorMode='0';
and make your own error handling and logging logic as described here writing to a text file (with STORE)
Hi White,
please give me simple example....
=Script=
MyLog:
LOAD
null() as Error,
null() as TimeStamp
Autogenerate(0);
...
IF some error is happend THEN
Concatenate(MyLog)
LOAD
'The error happend' as Error,
Now(0) as TimeStamp
AUTOGENERATE(0);
ENDIF
=End script=
How to handle errors and turn off the default behaviour read the link Anjos provided above.