let the logging package decide when to log.
or putting an if statement in the code to decideCode:BEGIN my_log_package.start_logging ( 'test', 'test', my_log_package.g_no_logging, TRUE, FALSE, 80 ); FOR i IN 1..10000000 LOOP my_log_package.record_event('TEST','TRUE', my_log_package.g_detail_logging); END LOOP; END; /
whether or not to call the logging package.
Code:BEGIN my_log_package.start_logging ( 'test', 'test', my_log_package.g_no_logging, TRUE, FALSE, 80 ); FOR i IN 1..10000000 LOOP IF my_log_package.g_detail_logging <= my_log_package.g_no_logging THEN my_log_package.record_event('TEST','TRUE', my_log_package.g_detail_logging); END IF; END LOOP; END; /




Reply With Quote