[log4plsql] LOG4PLSQL Error Version 3.1.b
Brought to you by:
gmoulard
From: <log...@li...> - 2004-02-12 08:51:48
|
<html><style>p {margin: 0px}</style><body bgcolor='#ffffff' style='font-size:9pt; font-family:Verdana; font-family: Verdana' ><P>Hi all ,</P><P>Thanks for your Efforts on the Log4PlSql Project.</P><P><BR>I tried to use LOG4PLSQL and got the following Error:</P><P>>>Get the Version ::>></P><FONT size=2><P>SQL> select plog.getLOG4PLSQVersion as Version from dual ;</P><P>VERSION<BR>--------------------------------------------------------------------------------<BR>3.1.b</P><P></P><P></P></FONT><P>SQL> set serveroutput on size 1000000<BR>SQL> BEGIN<BR> 2 IF Plog.isWarnEnabled THEN<BR> 3 Plog.warn( ' warn raises Exception ') ;<BR> 4 END IF ;<BR> 5 END ;<BR> 6 /<BR>BEGIN<BR>*<BR>FEHLER in Zeile 1:<BR>ORA-06502: PL/SQL: numeric or value error: character to number conversion error<BR>ORA-06512: at "LOG4PLSQL_USER.PLOG", line 757<BR>ORA-06512: at line 2</P><P> </P><P>I ! think the Problem lies in all the : is*****Enabled Functions :</P><P> Proposed Solution : I tried the following for isDebugEnabled Procedure :</P><P>The old Function with ERROR is >>> </P><P>FUNCTION isDebugEnabled RETURN BOOLEAN IS BEGIN RETURN islevelEnabled(getLevelInText('DEBUG')) ; END;</P><P>The new Modified Function which is Working is </P><P>>>> FUNCTION isDebugEnabled RETURN BOOLEAN IS BEGIN RETURN islevelEnabled( getTextInLevel('DEBUG') ); END;</P><P><BR>Changes: Replaced getLevelInText('DEBUG') with getTextInLevel('DEBUG') </P><P><BR>I think the Function Names are also a bit Interchanged.</P><P><BR>Test with the New Modified Function is as follows :</P><P>SQL> BEGIN<BR> 2 IF Plog.isDebugEnabled THEN<BR> 3&nbs! p; Plog.warn( ' Debug is Ok after Modification ') ;<BR> 4 END IF ;<BR> 5 END ;<BR> 6 /</P><P>PL/SQL-Prozedur wurde erfolgreich abgeschlossen.</P><P><BR>I hope others were also getting the same Error , or may be i did something wrong ?</P><P>Sincerely Yours,</P><P>Pascal Mwakuye</P></body></html> ______________________________________________________________________________<br>Erdbeben im Iran: Zehntausende Kinder brauchen Hilfe. UNICEF hilft den<br>Kindern - helfen Sie mit! https://www.unicef.de/spe/spe_03.php |