You are here: PSPad forum > English discussion forum > Log line
Posted by: pythonui | Date: 2015-05-21 12:22 | IP: IP Logged
Hello,
I have following in log,
1: G:\test\test[2301]: TODO: Testing to be done
Is it possible to click on this log to go on 2301 line number in file?
Note: I am using PSPAD scripting to write in LOG window.
Edited 2 time(s). Last edit at 2015-05-21 12:26 by pythonui.
Posted by: pspad | Date: 2015-05-21 13:12 | IP: IP Logged
Hello
Use this log parser expression:
*: %D%F[%l
YOu can test it in log parser debugger (Highlighter settings/Compiler tab - Debug button)
Posted by: pythonui | Date: 2015-05-22 02:55 | IP: IP Logged
Thanks,
I have setup log parser.I have script for finding TODO in the file.That script will list all TODOs in Log window.
But my parser is not working!
Anything to setup?
Posted by: pspad | Date: 2015-05-22 03:38 | IP: IP Logged
Does your file has name tasks without file extension?
Posted by: pythonui | Date: 2015-05-22 03:42 | IP: IP Logged
Hello,
Yes,I have file without extension!
Posted by: pspad | Date: 2015-05-22 04:30 | IP: IP Logged
Can you send me your script and any example of your file?
Posted by: pspad | Date: 2015-05-22 04:38 | IP: IP Logged
You set up log parser expression into Tasks highlighter. It means it will work only in case when Tasks highlighter is active (on the center of status bar).
If you use script, simple set log parser expression directly in the script.
logSetParser(expression: string): string
sets LOG parser expression
Posted by: pythonui | Date: 2015-05-22 04:43 | IP: IP Logged
Thanks for answer,
At which stage I have to setup LogParser in Script?
Any suggestion?
Posted by: pythonui | Date: 2015-05-22 04:45 | IP: IP Logged
Here is my script:
Example:
---------
22-May-15
---------
=> Test
=> TODO : "Testing"
This is for date!
I think it would same for TODO also!
NOTE : I have changed LOG parser to %l :%D%F :
Edited 3 time(s). Last edit at 2015-05-22 04:48 by pythonui.
Posted by: pspad | Date: 2015-05-22 04:57 | IP: IP Logged
Small note - if you want to edit any script, press right + left mouse together
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR