[log4plsql] Problem with SetEndSection
Brought to you by:
gmoulard
From: <log...@li...> - 2003-11-10 14:03:00
|
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 her...@wh... |