RE: [log4plsql] Problem with SetEndSection
Brought to you by:
gmoulard
From: <log...@li...> - 2003-11-10 19:22:46
|
Herman,=20 =20 Line 327 in pblog, if you change by this line : pCTX.LSection :=3D = substr(pCTX.LSection,1,instr(UPPER(pCTX.LSection), UPPER(pSECTION), = -1)-2); You don't have a same problem ? Regards,=20 Guillaume Moulard=20 gmo...@us... Project : LOG4PLSQL : Oracle Database Loggin tools see : http://log4plsql.sourceforge.net/ =20 -----Message d'origine----- De : log...@li... [mailto:log...@li...] Envoy=E9 : lundi 10 novembre 2003 15:07 =C0 : log...@li... Objet : [log4plsql] Problem with SetEndSection 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 =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Whitehorses B.V. Phone +31 26 3226900 Herman Suijs Mobile: +31 6 52002531 Postbus 4064 Fax: +31 26 3226909 6803 EB Arnhem Email her...@wh... ------------------------------------------------------- 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 Log...@li... https://lists.sourceforge.net/lists/listinfo/log4plsql-all-info log4plsq : http://log4plsql.sourceforge.net |