Qlik Community

QlikView Deployment

Discussion Board for collaboration related to QlikView Deployment.

jjwallaby
New Contributor III

qlikview script can you write simple info output to console so can see in logs

Hi,

Just wondering is there a call to write the the standard console/log from qlikview in script

Thanks

Tags (1)
7 Replies

Re: qlikview script can you write simple info output to console so can see in logs

Not sure if you mean custom lines in the log? If so, yes, use TRACE

https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/ScriptRegularS...

Highlighted
jjwallaby
New Contributor III

Re: qlikview script can you write simple info output to console so can see in logs

That is okay.  But was looking to see that trace output goes to the log when it runs in Console

(2018-05-08 15:24:55) Information: Entering Task Execution.

(2018-05-08 15:24:55) Information: ClusterID=2

(2018-05-08 15:24:55) Information: QDSID=xxxxx

(2018-05-08 15:24:55) Information: TaskID=xxxxx

(2018-05-08 15:24:55) Information: MaxRunTime=1.00:00:00

MVP
MVP

Re: qlikview script can you write simple info output to console so can see in logs

TRACE will write information to the document log (the .log file in the same folder as the .qvw file, if enabled for the document). I don't know of any way to write trace information to the task log (which is, I think, what you mean by console log).

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jjwallaby
New Contributor III

Re: qlikview script can you write simple info output to console so can see in logs

Thats correct.  We want to log additional information to Task Log.  As in the Web browser we can ONLY have access to see the Task Log results.  Unfortunately we have no access to the .log file it generates from .qvw.  So this is a limitation I guess.

Re: qlikview script can you write simple info output to console so can see in logs

AFAIK the TaskLog is not written to from the reload engine (QVB.exe). I guess the QlikView Distribution Engine manages the TaskLog and the QDS has nothing whatsoever to do with the Load Script. It just waits for a job to finish and records the execution result. Separate processes...

Re: qlikview script can you write simple info output to console so can see in logs

This is stored in the Application Data Folder as specified in the QMC > System > Setup > Distribution Services > 1 (the number of the QDS as the name of the folder) > Log > Date (e.g.: today 20180508) > TaskLog.txt for what you refer as it appears on the QMC and DocumentLog.txt for the script execution.

TRACEs will be displayed on the latter.

You can create a QlikView application that reads and processes those logs (that's what the QlikView Governance Dashboard does).

MVP & Luminary
MVP & Luminary

Re: qlikview script can you write simple info output to console so can see in logs

I think Peter is right and it won't be possible because of the different processes. Maybe it's an alternatively to implement an application which reads all document-logs and which could be accessed per access point, for example with the tis tool from Rob: Script Log Analyzer v1.5 in German and Portuguese.

- Marcus