DBA Data[Home] [Help]

APPS.WF_LOG_PKG dependencies on WF_LOG_PKG

Line 1: package body WF_LOG_PKG as

1: package body WF_LOG_PKG as
2: /* $Header: WFLOGPKB.pls 120.3.12000000.2 2007/07/03 21:53:24 vshanmug ship $ */
3:
4: LEVEL_UNEXPECTED CONSTANT NUMBER := 6;
5: LEVEL_ERROR CONSTANT NUMBER := 5;

Line 14: ** This will do the same work as wf_log_pkg.wf_debug_flag.

10:
11: ------------------------------------------------------------------------------
12: /*
13: ** Init - Initialise the Logging global variables to do standalone testing.
14: ** This will do the same work as wf_log_pkg.wf_debug_flag.
15: ** (This API to be used by WF Dev only)
16: */
17: procedure Init (
18: LOG_ENABLED in binary_integer,

Line 72: wf_core.context('WF_LOG_PKG', 'Init');

68: FND_LOG_REPOSITORY.Init();
69:
70: exception
71: when others then
72: wf_core.context('WF_LOG_PKG', 'Init');
73: raise;
74: end Init;
75: ------------------------------------------------------------------------------
76:

Line 144: ** WF_LOG_PKG.SET_NAME, WF_LOG_PKG.SET_TOKEN, etc.

140: ** MESSAGE
141: ** Wrapper to FND_LOG.MESSAGE
142: ** Writes a message to the log file if this level and module is enabled
143: ** This requires that the message was set previously with
144: ** WF_LOG_PKG.SET_NAME, WF_LOG_PKG.SET_TOKEN, etc.
145: ** The message is popped off the message dictionary stack, if POP_MESSAGE
146: ** is TRUE. Pass FALSE for POP_MESSAGE if the message will also be
147: ** displayed to the user later. If POP_MESSAGE isn't passed, the
148: ** message will not be popped off the stack, so it must be displayed

Line 218: wf_log_pkg.g_start_times(l_idx) := dbms_utility.get_time();

214: -- using 2^20 as the size of the hash table
215: l_idx := dbms_utility.get_hash_value(module, 1, 1048576);
216:
217: if (starts) then
218: wf_log_pkg.g_start_times(l_idx) := dbms_utility.get_time();
219: l_log := ' [Start time '||to_char(wf_log_pkg.g_start_times(l_idx))||']';
220: else
221: l_end_time := dbms_utility.get_time();
222: l_start_time := wf_log_pkg.g_start_times(l_idx);

Line 219: l_log := ' [Start time '||to_char(wf_log_pkg.g_start_times(l_idx))||']';

215: l_idx := dbms_utility.get_hash_value(module, 1, 1048576);
216:
217: if (starts) then
218: wf_log_pkg.g_start_times(l_idx) := dbms_utility.get_time();
219: l_log := ' [Start time '||to_char(wf_log_pkg.g_start_times(l_idx))||']';
220: else
221: l_end_time := dbms_utility.get_time();
222: l_start_time := wf_log_pkg.g_start_times(l_idx);
223:

Line 222: l_start_time := wf_log_pkg.g_start_times(l_idx);

218: wf_log_pkg.g_start_times(l_idx) := dbms_utility.get_time();
219: l_log := ' [Start time '||to_char(wf_log_pkg.g_start_times(l_idx))||']';
220: else
221: l_end_time := dbms_utility.get_time();
222: l_start_time := wf_log_pkg.g_start_times(l_idx);
223:
224: -- Retaining the start time may help printing incremental
225: -- elapsed time... Scope for improvement later.
226: wf_log_pkg.g_start_times.delete(l_idx);

Line 226: wf_log_pkg.g_start_times.delete(l_idx);

222: l_start_time := wf_log_pkg.g_start_times(l_idx);
223:
224: -- Retaining the start time may help printing incremental
225: -- elapsed time... Scope for improvement later.
226: wf_log_pkg.g_start_times.delete(l_idx);
227:
228: l_elapsed_time := trunc(((l_end_time-l_start_time)/100), 2);
229: l_log := ' [End time '||to_char(l_end_time)||']';
230: l_log := l_log||' [Time taken - '||to_char(l_elapsed_time)||' secs]';

Line 245: end WF_LOG_PKG;

241: null;
242: end String2;
243: ------------------------------------------------------------------------------
244:
245: end WF_LOG_PKG;