RE : [log4plsql] Bug in isFatalEnabled, ...isDebugEnabled functions.
Brought to you by:
gmoulard
From: <log...@li...> - 2004-02-24 08:13:14
|
At 18:06 23/02/2004, you wrote: >Hi Francesco, > >Could you explaine the problem. I don't see your problem. > >Now this feature run (see and test whith TestISXXXXXXEnable.sql) Hi, I try to explain more clearly the problem. The bug was a bug in all function isXXXXXXEnable in version . As you can see, for instance in function isFatalEnabled FUNCTION isFatalEnabled ( pCTX IN LOG_CTX ) RETURN boolean is begin return islevelEnabled(pCTX, getLevelInText('FATAL')); end; there is a call to getLevelInText whereas the correct call is getTextInLevel. The call used inside the plog version 312 does not work and give a conversion error from text to integer. The fix to this bug is to replace the getLevelInText calls inside isXXXXEnabled the with getTextInLevel calls. I olso get a lot confused when I search for this error since the name of the two function getLevelInText and getTextInLevel are similar and the oracle error was a bit cryptic. |