You are here: PSPad forum > English discussion forum > Log line

Log line

Goto Page: 1 2 Next

#1 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.

Options: Reply | Quote | Up ^


#2 Re: Log line

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)

Options: Reply | Quote | Up ^


#3 Re: Log line

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.

image

But my parser is not working!

Anything to setup?

Options: Reply | Quote | Up ^


#4 Re: Log line

Posted by: pspad | Date: 2015-05-22 03:38 | IP: IP Logged

Does your file has name tasks without file extension?

Options: Reply | Quote | Up ^


#5 Re: Log line

Posted by: pythonui | Date: 2015-05-22 03:42 | IP: IP Logged

Hello,

Yes,I have file without extension!

Options: Reply | Quote | Up ^


#6 Re: Log line

Posted by: pspad | Date: 2015-05-22 04:30 | IP: IP Logged

Can you send me your script and any example of your file?

Options: Reply | Quote | Up ^


#7 Re: Log line

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

Options: Reply | Quote | Up ^


#8 Re: Log line

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?

Options: Reply | Quote | Up ^


#9 Re: Log line

Posted by: pythonui | Date: 2015-05-22 04:45 | IP: IP Logged

Here is my script:

pastebin.com
pastebin.com

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.

Options: Reply | Quote | Up ^


#10 Re: Log line

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

Options: Reply | Quote | Up ^


Goto Page: 1 2 Next





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