I have a package called test_controller. It has a procedure 'controller'.
When I call

PLOG.SetBeginSection(pCTX, 'controller');
PLOG.debug(pCTX, 'test');
PLOG.SetEndSection(pCTX, 'controller');

The name in this section is: test_controller.controller.
After SetEndSection, the name of the pCTX is 'test' instead of
'test_controller'.

The EndSection routine looks for the first occurrence of 'controller' and
then takes the substring from the begin to one character before controller:
test_controller.controller
     controller
test

One way to do this is to search also for the dot:
'.controller' instead of 'controller'.
test_controller.controller
               .controller
test_controller

But this will stay a problem when two times the same sectionname is used,
'controller':
test_controller.controller.controller
               .controller

Better would be to search for the last occurrence or a regexp like:
\.controller$


I'm looking forward to a new release, allthough this is the only problem
noticed so far.


Herman Suijs

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Whitehorses B.V.       Phone +31 26 3226900
Herman Suijs           Mobile: +31 6 52002531
Postbus 4064           Fax: +31 26 3226909
6803 EB Arnhem         Email [EMAIL PROTECTED]




-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Log4plsql-all-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/log4plsql-all-info
log4plsq : http://log4plsql.sourceforge.net

Reply via email to