[log4plsql] RE: Help required in Log4plsql : setting the logging level
Brought to you by:
gmoulard
From: <log...@li...> - 2005-03-17 10:13:52
|
Hi Vijay, You can use=20 ------------ log([LOG_CTX, ]TLOG.LLEVEL%type|TLOGLEVEL.LCODE%type [, Mess]) ------------ Ex: plog.log (LERROR , 'my Application error');=20 plog.log ('ERROR' , 'my Application error');=20 With:=20 -- The OFF has the highest possible rank and is intended to turn off logging. LOFF CONSTANT number :=3D 10 ; -- The FATAL level designates very severe error events that will = presumably lead the application to abort. LFATAL CONSTANT number :=3D 20 ; -- The ERROR level designates error events that might still allow the application to continue running. LERROR CONSTANT number :=3D 30 ; -- The WARN level designates potentially harmful situations. LWARN CONSTANT number :=3D 40 ; -- The INFO level designates informational messages that highlight the progress of the application at coarse-grained level. LINFO CONSTANT number :=3D 50 ; -- The DEBUG Level designates fine-grained informational events that are most useful to debug an application. LDEBUG CONSTANT number :=3D 60 ; -- The ALL has the lowest possible rank and is intended to turn on all logging. LALL CONSTANT number :=3D 70 ; Or if you have define some other log level plog.log ('AppError' , 'my Application error');=20 See : = http://log4plsql.sourceforge.net/docs/UserGuideDOC.html#_Toc67467113 =20 Cordialement / Regards, Guillaume Moulard -----Message d'origine----- De : Vijay Jain =20 Envoy=E9 : jeudi 17 mars 2005 10:49 =C0 : gmo...@us... Objet : Help required in Log4plsql : setting the logging level Hi Guillaume, Please forgive me if this mail is not intentd to you. I am trying to do the set up for the Log4plsql. Here I have 10 = procedures in which I've written different log stetment for various scenarios (for = dubug, fatal, info etc.). I want to change the logging level without making any changes to these procedures. Can you please tell me where should I make = the changes so that the logging level can be changed dynamically? Thanks, Vijay Mangalore-India |