Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Timestamp in Logfile Name

Hi everyBody,

Could someone tell me what I'm supposed to do to make 'timestamps in logfile names' while this fonctionality doesn't exist in QV 8.5?

Many thanks,

Kai ZHONG

3 Replies
hector
Specialist
Specialist

Hi,

Go to Document Properties/General and check

  • Generate Logfile
  • Timestamp in logfile name.

Then in every reloading, instead of overwriting the file DocumentName.qvw.log, it's going to create one with the datetime in it's name.

Rgds

Not applicable
Author

Hi Héctor,

That's very kind of you. However, in QV 8.5, the option that you mentionned dosn't exist...

Good day.

Kai

sparur
Specialist II
Specialist II

Hello, Kai.

I have one decision for you 🙂

If you can use publisher, you can setup job, which after reload qvw will run external program task and run CMD-file

You can use command file, which will be copy/rename your log file into new file with correct name.

I use such approach.

small example from my CMD-file:

@echo off
set now=%TIME:~0,-3%
set now=%now::=%
set now=%now: =0%
set now=%DATE%_%now%
@echo on

rem Copy Log files into new file

copy "c:\TestLogRename\testLogRename.qvw.log" /Y "C:\TestLogRename\testLogRename_%now%.qvw.log"

after this I get log file with name: testLogRename_17.01.2011_112129.qvw.log


I hope that this info will be useful for you.