DBA Data[Home] [Help]

APPS.JAI_CMN_DEBUG_CONTEXTS_PKG dependencies on JAI_CONSTANTS

Line 27: lv_exception_propagation varchar2 (2) := jai_constants.No;

23: ln_stack_max_cnt number := 200000;
24: lv_each_file_open_mode varchar2(1) := 'a';
25: lv_default_log_file_prefix varchar2 (240) := 'jai_cmn_debug_contexts';
26: lv_default_log_file_suffix varchar2 (10) := '.log';
27: lv_exception_propagation varchar2 (2) := jai_constants.No;
28: ln_context_cache_size number := 20;
29: lv_debug varchar2(2) := jai_constants.no; -- internal debug --modified by csahoo for bug#6401388
30: ln_print_each_context varchar2(2) := jai_constants.yes; -- Prints each context when registered
31: lv_internal_log_file varchar2 (100) := 'JaiDebugLogInternal.log';

Line 29: lv_debug varchar2(2) := jai_constants.no; -- internal debug --modified by csahoo for bug#6401388

25: lv_default_log_file_prefix varchar2 (240) := 'jai_cmn_debug_contexts';
26: lv_default_log_file_suffix varchar2 (10) := '.log';
27: lv_exception_propagation varchar2 (2) := jai_constants.No;
28: ln_context_cache_size number := 20;
29: lv_debug varchar2(2) := jai_constants.no; -- internal debug --modified by csahoo for bug#6401388
30: ln_print_each_context varchar2(2) := jai_constants.yes; -- Prints each context when registered
31: lv_internal_log_file varchar2 (100) := 'JaiDebugLogInternal.log';
32:
33: /***************************************************************************************************

Line 30: ln_print_each_context varchar2(2) := jai_constants.yes; -- Prints each context when registered

26: lv_default_log_file_suffix varchar2 (10) := '.log';
27: lv_exception_propagation varchar2 (2) := jai_constants.No;
28: ln_context_cache_size number := 20;
29: lv_debug varchar2(2) := jai_constants.no; -- internal debug --modified by csahoo for bug#6401388
30: ln_print_each_context varchar2(2) := jai_constants.yes; -- Prints each context when registered
31: lv_internal_log_file varchar2 (100) := 'JaiDebugLogInternal.log';
32:
33: /***************************************************************************************************
34: -- #

Line 40: lv_exception_propagation is initialised to jai_constants.No instead of jai_constants.Yes

36:
37:
38: 1. 02/02/2007 Bgowrava for bug#5631784. File Version 120.0
39: Forward Porting of 11i BUG#4742259 (TCS Enhancement)
40: lv_exception_propagation is initialised to jai_constants.No instead of jai_constants.Yes
41: 2. 12/06/2007 Kunkumar made changes for bug#5915101
42: replaced the write log with debug .
43: 3. 11/09/2007 CSahoo for bug#6401388, File Version 120.3.12000000.2
44: Initially lv_debug was assigned to jai_constants.yes. Changes that to jai_constants.no

Line 44: Initially lv_debug was assigned to jai_constants.yes. Changes that to jai_constants.no

40: lv_exception_propagation is initialised to jai_constants.No instead of jai_constants.Yes
41: 2. 12/06/2007 Kunkumar made changes for bug#5915101
42: replaced the write log with debug .
43: 3. 11/09/2007 CSahoo for bug#6401388, File Version 120.3.12000000.2
44: Initially lv_debug was assigned to jai_constants.yes. Changes that to jai_constants.no
45: ********************************************************************************************************/
46:
47:
48: procedure init;

Line 76: if lv_exception_propagation = jai_constants.yes then

72: debug ('Stack Flushed, count is' ||t_call_stack.count);
73: exception
74: when others then
75: debug('when_stack_empty->'||sqlerrm);
76: if lv_exception_propagation = jai_constants.yes then
77: raise;
78: end if;
79:
80: end when_stack_empty;

Line 118: if lv_exception_propagation = jai_constants.yes then

114:
115: exception
116: when others then
117: debug('get_log_file_handle->'||sqlerrm);
118: if lv_exception_propagation = jai_constants.yes then
119: raise;
120: end if;
121:
122: end get_log_file_handle ;

Line 175: if lv_exception_propagation = jai_constants.yes then

171:
172: exception
173: when others then
174: debug('parse_and_print_stack->'||sqlerrm);
175: if lv_exception_propagation = jai_constants.yes then
176: raise;
177: end if;
178:
179: end parse_and_print_stack;

Line 205: if lv_exception_propagation = jai_constants.yes then

201:
202: exception
203: when others then
204: debug('pop_stack->'||sqlerrm);
205: if lv_exception_propagation = jai_constants.yes then
206: raise;
207: end if;
208: end pop_stack;
209:

Line 215: , pv_new_line_flag in varchar2 default jai_constants.yes

211:
212: procedure write_log ( pn_reg_id in number default null
213: , pv_log_msg in varchar2
214: , pn_statement_level in number default jai_cmn_debug_contexts_pkg.off
215: , pv_new_line_flag in varchar2 default jai_constants.yes
216: )
217: is
218: f_handle utl_file.file_type;
219: begin

Line 221: if pn_reg_id is null AND NVL(lv_debug,jai_constants.no)=jai_constants.yes then --Added the second condition by kunkumar in if statement for bug#5915101

217: is
218: f_handle utl_file.file_type;
219: begin
220:
221: if pn_reg_id is null AND NVL(lv_debug,jai_constants.no)=jai_constants.yes then --Added the second condition by kunkumar in if statement for bug#5915101
222: /** Internal calll to write in the default log file */
223: f_handle := get_log_file_handle (lv_internal_log_file);
224: utl_file.put_line (f_handle, pv_log_msg);
225: return;

Line 230: if pv_new_line_flag = jai_constants.no then

226: end if;
227:
228: if t_call_stack(pn_reg_id).row.log_status >= pn_statement_level then
229: f_handle := get_log_file_handle (nvl(t_call_stack(pn_reg_id).log_file_name,lv_default_log_file));
230: if pv_new_line_flag = jai_constants.no then
231: utl_file.put (f_handle, pv_log_msg);
232: else
233: utl_file.put_line (f_handle, pv_log_msg);
234: end if;

Line 240: if lv_exception_propagation = jai_constants.yes then

236:
237: exception
238:
239: when others then
240: if lv_exception_propagation = jai_constants.yes then
241: raise;
242: end if;
243:
244: end write_log;

Line 249: if lv_debug=jai_constants.yes then

245: /*---------------------------------------------------------------------------------------------------*/
246: procedure debug (lv_msg varchar2)
247: is
248: begin
249: if lv_debug=jai_constants.yes then
250: write_log (pv_log_msg => '(#):'|| lv_msg);
251: --dbms_output.put_line (lv_msg);
252: end if;
253: end debug;

Line 337: if ln_print_each_context = jai_constants.yes then

333: pn_reg_id := 0;
334: debug ('pn_reg_id='||pn_reg_id);
335: end if; /**r_temp_rec is not null */
336:
337: if ln_print_each_context = jai_constants.yes then
338: print (pn_reg_id, lpad('-',100,'-'),summary);
339: print (pn_reg_id, lpad('BEGIN -> '|| pv_context,240,' '),summary);
340: print (pn_reg_id, lpad('-',100,'-'),summary);
341: end if;

Line 351: if lv_exception_propagation = jai_constants.yes then

347:
348: print_stack;
349: debug('Stack overflow error in jai_cmn_debug_contexts_pkg');--kunkumar replaced write_log with debug for bug#5915101
350:
351: if lv_exception_propagation = jai_constants.yes then
352: raise_application_error (-20275, 'Stack overflow error in jai_cmn_debug_contexts_pkg');
353: end if;
354: when others then
355: debug('register->'||sqlerrm);

Line 356: if lv_exception_propagation = jai_constants.yes then

352: raise_application_error (-20275, 'Stack overflow error in jai_cmn_debug_contexts_pkg');
353: end if;
354: when others then
355: debug('register->'||sqlerrm);
356: if lv_exception_propagation = jai_constants.yes then
357: raise;
358: end if;
359:
360: end register;

Line 385: if lv_exception_propagation = jai_constants.yes then

381: debug ('End -> PRINT');
382: exception
383: when others then
384: debug('print->'||sqlerrm);
385: if lv_exception_propagation = jai_constants.yes then
386: raise;
387: end if;
388:
389: end print;

Line 400: if lv_exception_propagation = jai_constants.yes then

396: debug ('End -> PRINT_STACK');
397: exception
398: when others then
399: debug('print_stack->'||sqlerrm);
400: if lv_exception_propagation = jai_constants.yes then
401: raise;
402: end if;
403:
404: end print_stack;

Line 419: if ln_print_each_context = jai_constants.yes then

415: end if;
416:
417: ln_reg_id := abs(pn_reg_id);
418:
419: if ln_print_each_context = jai_constants.yes then
420: print (ln_reg_id, lpad('-',100,'-'),summary);
421: print (ln_reg_id, lpad('End -> '|| t_call_stack(ln_reg_id).registered_name,240,' '),summary);
422: print (ln_reg_id, lpad('-',100,'-'),summary);
423: end if;

Line 435: if lv_exception_propagation = jai_constants.yes then

431: debug ('End -> DEREGISTER');
432: exception
433: when others then
434: debug('deregister->'||sqlerrm);
435: if lv_exception_propagation = jai_constants.yes then
436: print_stack;
437: raise;
438: end if;
439: end deregister;

Line 477: if lv_debug = jai_constants.yes then

473: ||fnd_global.local_chr(10)||'Internal Debug Logging='||lv_debug
474: ||fnd_global.local_chr(10)||'Context Printing='||ln_print_each_context
475: ||fnd_global.local_chr(10)||'--------------------------------------------------------------------------'
476: );
477: if lv_debug = jai_constants.yes then
478: write_log(pv_log_msg=>'NOTE: Internal logging is enabled. Lines marked with "(#)" are internal log messages. To disable internal logging
479: set private variable jai_cmn_debug_contexts_pkg.lv_debug=''N'''
480: );
481: end if;

Line 486: if lv_exception_propagation = jai_constants.yes then

482: debug ('End -> INIT');
483: exception
484: when others then
485: debug('INIT ->'||sqlerrm);
486: if lv_exception_propagation = jai_constants.yes then
487: raise;
488: end if;
489: end init;
490: