Logging options - full & reduced (suggestion)

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

DFH
Posts: 636
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Logging options - full & reduced (suggestion)

Postby DFH » Mon May 06, 2013 7:12 pm

I have a suggestion for enhancing the use of logging options.

When several sub-filters use an external replace list file, and the files to be processed are numerous,
it often happens that for each such Replace filter, only one of the matching patterns needs to be replaced.
This is because the simplest way of replacing the same kind of item in each file, is to use such a list.

The consequence for the TextPipe log file is that it can end up including lots of lines like this:

Code: Select all

2013-05-06 09:55:27,Info,  1 replace(s) performed for pattern match [01]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [02]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [03]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [04]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [05]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [06]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [07]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [08]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [09]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [10]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [11]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [12]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [13]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [14]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [15]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [16]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [17]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [18]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [19]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [20]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [21]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [22]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [23]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [24]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [25]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [26]
2013-05-06 09:55:27,Info,  0 replace(s) performed for pattern match [27]

The log file would be less cluttered if Logging options were to have a feature to choose between Full or Reduced logging of such replace list filters.

Full logging would be the default, and behave as currently.
Reduced logging would log only the non-zero replaces performed for pattern matches in external replace list files.
A single check box in logging options would suffice to facilitate this de-cluttering.

Please review and comment. Thanks.

User avatar
DataMystic Support
Site Admin
Posts: 2138
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Logging options - full & reduced (suggestion)

Postby DataMystic Support » Mon May 06, 2013 10:13 pm

So you see it as an option of a search/replace list filter, and not of all pattern matches in the entire filter tree?
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

DFH
Posts: 636
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Re: Logging options - full & reduced (suggestion)

Postby DFH » Tue May 07, 2013 3:19 am

That would be one way of implementing it, on a filter by filter basis.

Yet it might be rather more convenient to just have one single place in Filter options for the proposed check box,
with a clear explanation in the help file that it applies to all replace filters where the replace lists are an external file.

Whether there are other filters that use external files, for which reduced logging might be worth considering,
that's not something I've given much thought to.

David

User avatar
DataMystic Support
Site Admin
Posts: 2138
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Logging options - full & reduced (suggestion)

Postby DataMystic Support » Tue May 07, 2013 2:09 pm

If it only applies to the search/replace lists with an external file, then that's where it should go in the interface.

If it applied to all search/replaces with zero replacements, then it would go in the top level options. I think option 1) is the best place.
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

DFH
Posts: 636
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Re: Logging options - full & reduced (suggestion)

Postby DFH » Sun May 12, 2013 7:39 pm

OK - that's fine by me.

David

User avatar
DataMystic Support
Site Admin
Posts: 2138
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Logging options - full & reduced (suggestion)

Postby DataMystic Support » Wed Jun 19, 2013 6:39 am

Hi David,

This has been built and tested for the v9.5 release this week.
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 1 guest