You can try this:
filename() as LOGNAME,
ROWNO() AS ROW,
[lib://yourlib/PROGRAMDATA\Qlik\Sense\Log\Script\*.log] (fix, utf8, no labels);
the problem is that you read all log files, so you need the description; you have two options:
1) If its only one log to read, you can go to the qmc, in apps, you can filter the app and add the column with the id to filter in the LOGS table;
2) The license monitor get the app name (that's the field) reading the logs folder.
I hope it has been useful to you!
I thought about loading from the log folder, but that's a bit clunky for what I want. I don't want to do analysis, I just want to see my last log quickly to help diagnose a script failure during development, usually wanting to see variable substitution.
As an alternative, I'm learning to value the Sense Output window. The error messages there can be pretty specific.
I've also found that a breakpoint in the debugger will show a statement after variable substitution, very useful and something I never noticed before (or forgot).
The logs are also stored in Qlik\Sense\Logs\Scripts\
Senior Implementation Consultant
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
image001.jpg 82.2 K
I think the debuguer is the best option to do that!
By the way, I create a qvf to read the logs easy; the only thing is that it have to be reloaded after run the qvf where we work.
LOGS.qvf 480.0 K