Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How do I do to relocate an application log to another folder?

Hi

I want to relocate an application log to a log folder. I tried to write the path in the box Title after checking the box Generate Logfile who is in the following menu

Setting -> Document Properties -> General.

I used an include sentence, but it didn't work well.

Could someone give me an example of how to do it, please?

Many thanks

1 Reply
hectorgarcia
Partner - Creator III
Partner - Creator III

I use as a good practice, a small piece of script that after load, create a copy of the log in other folder specifying , the username , date and app name in a specific folder, then the logs can be analized from a qv application that analize the log.

This is the conceptual piece of script

tablename:
LOAD * INLINE [
    F1
    hola
];

let vuser=osuser();
let vfile=DocumentName();
let vfecha=timestamp(now(),'YYYYMMDDhhmmss');

//exit script;

execute cmd.exe /C copy $(vfile).log  $(vfecha)&$(vuser)&$(vfile).log;