When the following call is performed (after having appropriately initialised ctx)

PLOG.setLevel(ctx);

ORA-20501: Set Level not in LOG predefine constantes

I have looked in the code and noticed that the pLEVEL is set to PLOG.NOLEVEL in that case.

The problem is simply that in the following code of SetLevel

    IF pLEVEL <> LOFF   AND
       pLEVEL <> LFATAL AND
       pLEVEL <> LERROR AND
       pLEVEL <> LWARN  AND
       pLEVEL <> LINFO  AND
       pLEVEL <> LDEBUG AND
       pLEVEL <> LALL
       THEN

the following line is missing.

    pLEVEL <> NOLEVEL AND

You might want to amend the code appropriately

Sincerely
luca

Reply via email to