Hi Vijay,

You can use 

------------
log([LOG_CTX, ]TLOG.LLEVEL%type|TLOGLEVEL.LCODE%type [, Mess])
------------

Ex:
plog.log (LERROR , 'my Application error'); 
plog.log ('ERROR' , 'my Application error'); 

With: 
-- The OFF has the highest possible rank and is intended to turn off
logging.
LOFF   CONSTANT number := 10 ;
-- The FATAL level designates very severe error events that will presumably
lead the application to abort.
LFATAL CONSTANT number := 20 ;
-- The ERROR level designates error events that might still allow the
application  to continue running.
LERROR CONSTANT number := 30 ;
-- The WARN level designates potentially harmful situations.
LWARN  CONSTANT number := 40 ;
-- The INFO level designates informational messages that highlight the
progress of the application at coarse-grained level.
LINFO  CONSTANT number := 50 ;
-- The DEBUG Level designates fine-grained informational events that are
most useful to debug an application.
LDEBUG CONSTANT number := 60 ;
-- The ALL has the lowest possible rank and is intended to turn on all
logging.
LALL   CONSTANT number := 70 ;


Or if you have define some other log level
plog.log ('AppError'  , 'my Application error'); 


See : http://log4plsql.sourceforge.net/docs/UserGuideDOC.html#_Toc67467113
 
Cordialement / Regards,
Guillaume Moulard

-----Message d'origine-----
De : Vijay Jain  
Envoyé : jeudi 17 mars 2005 10:49
À : [EMAIL PROTECTED]
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




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Log4plsql-all-info mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/log4plsql-all-info
log4plsq : http://log4plsql.sourceforge.net

Reply via email to