Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
qv_testing
Specialist II
Specialist II

Log File

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

4 Replies
whiteline
Master II
Master II

Hi.

Generate table with errors or info messages and then store it with 'Store' statement. It would be your own log-file.

Clever_Anjos
Employee
Employee

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)

qv_testing
Specialist II
Specialist II
Author

Hi White,

please give me simple example....

whiteline
Master II
Master II

=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.