[Astpp-tracker] [ astpp-Feature Requests-1825337 ] Logging Support
Brought to you by:
darrenkw
From: SourceForge.net <no...@so...> - 2008-05-31 20:46:34
|
Feature Requests item #1825337, was opened at 2007-11-03 16:25 Message generated for change (Comment added) made by darrenkw You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=994549&aid=1825337&group_id=205663 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: Backend Group: None Status: Open Priority: 5 Private: No Submitted By: Aleph Communications (darrenkw) >Assigned to: Aleph Communications (darrenkw) Summary: Logging Support Initial Comment: Details SELECT * FROM routes WHERE '00923008496337' RLIKE pattern AND pricelist = 'pkcanada-cc' ORDER BY LENGTH(pattern) DESCpattern: 300.* so, that could really use a \n after DESC this is prevalent throughout the AGI This task depends upon Add new Close Task Assign to me Add me to assignees Edit this task Comments (4) Related Tasks (1/0) Notifications (3) Reminders (0) History Comment by Darren (dkwiebe) - Saturday, 14 July 2007, 05:11 GMT — Edit — Delete This would be a very simple but timeconsuming task. We need to go through and add a . "\n" every time a STDERR appears. Comment by Wasim Baig (wasim) - Saturday, 14 July 2007, 07:46 GMT — Edit — Delete Ok, so first we need to change all STDERR to a subroutine say "&astpp_stderr" and then in here we can always make a oneline change and add other details as we go along i'll see if i can get one of my boys to do this using regex to go thorugh the code and replace all print STDERR blah if $config->{debug} == 1; with &astpp_stderr ('blah'); But then i did a little googling and found http://www.perl.com/pub/a/2002/09/11/log4perl.html http://mike.kruckenberg.com/archives/2003/12/perl_logging_op.html http://www252.pair.com/comdog/mastering_perl/Chapters/13.logging.html And it seems thats the way to go, so I'm renaming this task Comment by Darren (dkwiebe) - Saturday, 14 July 2007, 16:50 GMT — Edit — Delete I'm getting very close to starting with OOP on this project. I plan on rolling things over as we go along as much as possible. Do you mind waiting a bit on this one? Comment by Darren (dkwiebe) - Wednesday, 19 September 2007, 03:29 GMT — Edit — Delete I've added an astpp perl module which has a section the debugging output should go. This will eventually include support to log to the database. ---------------------------------------------------------------------- >Comment By: Aleph Communications (darrenkw) Date: 2008-05-31 14:46 Message: Logged In: YES user_id=1227065 Originator: YES Logging support has been added. Instead of printing to stderr do as follows: $ASTPP->debug( debug => "Debugging Output"); This has been implemented in some code and over time everything will be converted. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=994549&aid=1825337&group_id=205663 |