DBA Data[Home] [Help]

APPS.FND_OAM_DEBUG dependencies on FND_LOG

Line 11: b_log_level NUMBER := NULL; --defaulting to NULL allows fnd_log's level to be used by default

7: PKG_NAME CONSTANT VARCHAR2(20) := 'DEBUG.';
8: B_DEFAULT_FILE_PREFIX CONSTANT VARCHAR2(20) := 'fnd_oam_debug';
9:
10: -- State variables
11: b_log_level NUMBER := NULL; --defaulting to NULL allows fnd_log's level to be used by default
12: b_include_timestamp BOOLEAN := FALSE;
13: b_use_indentation BOOLEAN := FALSE;
14: b_indent_level NUMBER := 0;
15: b_fd UTL_FILE.FILE_TYPE;

Line 20: b_style_fnd_log BOOLEAN := TRUE; --by default, only enable fnd_log

16:
17: --store what styles are enabled
18: b_style_screen BOOLEAN := FALSE;
19: b_style_file BOOLEAN := FALSE;
20: b_style_fnd_log BOOLEAN := TRUE; --by default, only enable fnd_log
21:
22: -- Private helper to close the log file, also turns off the "file" style
23: FUNCTION CLOSE_LOG_FILE
24: RETURN BOOLEAN

Line 56: b_style_fnd_log := TRUE;

52: b_style_screen := FALSE;
53: IF b_style_file THEN
54: l_ignore := CLOSE_LOG_FILE;
55: END IF;
56: b_style_fnd_log := TRUE;
57:
58: --also reset the internal log level
59: b_log_level := NULL;
60:

Line 91: b_style_fnd_log := TRUE;

87: IF NOT CLOSE_LOG_FILE THEN
88: RETURN FALSE;
89: END IF;
90: END IF;
91: b_style_fnd_log := TRUE;
92:
93: b_include_timestamp := FALSE;
94: b_use_indentation := FALSE;
95: b_indent_level := 0;

Line 194: FUNCTION ENABLE_STYLE_FND_LOG

190: RETURN FALSE;
191: END;
192:
193: -- Public
194: FUNCTION ENABLE_STYLE_FND_LOG
195: RETURN BOOLEAN
196: IS
197: BEGIN
198: b_style_fnd_log := TRUE;

Line 198: b_style_fnd_log := TRUE;

194: FUNCTION ENABLE_STYLE_FND_LOG
195: RETURN BOOLEAN
196: IS
197: BEGIN
198: b_style_fnd_log := TRUE;
199: RETURN TRUE;
200: END;
201:
202: -- Public

Line 213: WHEN STYLE_FND_LOG THEN

209: WHEN STYLE_SCREEN THEN
210: b_style_screen := FALSE;
211: WHEN STYLE_FILE THEN
212: l_bool := CLOSE_LOG_FILE;
213: WHEN STYLE_FND_LOG THEN
214: b_style_fnd_log := FALSE;
215: ELSE
216: RETURN FALSE;
217: END CASE;

Line 214: b_style_fnd_log := FALSE;

210: b_style_screen := FALSE;
211: WHEN STYLE_FILE THEN
212: l_bool := CLOSE_LOG_FILE;
213: WHEN STYLE_FND_LOG THEN
214: b_style_fnd_log := FALSE;
215: ELSE
216: RETURN FALSE;
217: END CASE;
218: RETURN l_bool;

Line 229: --try to defer to fnd_log

225: IS
226: BEGIN
227: --if our internal log level is null, look elsewhere for a level
228: IF b_log_level IS NULL THEN
229: --try to defer to fnd_log
230: IF b_style_fnd_log THEN
231: RETURN (p_level >= FND_LOG.G_CURRENT_RUNTIME_LEVEL);
232: END IF;
233: ELSE

Line 230: IF b_style_fnd_log THEN

226: BEGIN
227: --if our internal log level is null, look elsewhere for a level
228: IF b_log_level IS NULL THEN
229: --try to defer to fnd_log
230: IF b_style_fnd_log THEN
231: RETURN (p_level >= FND_LOG.G_CURRENT_RUNTIME_LEVEL);
232: END IF;
233: ELSE
234: RETURN p_level >= b_log_level;

Line 231: RETURN (p_level >= FND_LOG.G_CURRENT_RUNTIME_LEVEL);

227: --if our internal log level is null, look elsewhere for a level
228: IF b_log_level IS NULL THEN
229: --try to defer to fnd_log
230: IF b_style_fnd_log THEN
231: RETURN (p_level >= FND_LOG.G_CURRENT_RUNTIME_LEVEL);
232: END IF;
233: ELSE
234: RETURN p_level >= b_log_level;
235: END IF;

Line 336: IF b_style_fnd_log THEN

332: l_s := MAKE_INDENT_STR||'['||p_ctxt||']('||p_level||'): "'||s||'"';
333: END IF;
334:
335: --log it
336: IF b_style_fnd_log THEN
337: --For GSCC compliance, check against constant instead of calling PL/SQL function
338: --Needs to be present even though we have a TEST function
339: IF (p_level >= FND_LOG.G_CURRENT_RUNTIME_LEVEL) THEN
340: FND_LOG.STRING(p_level,

Line 339: IF (p_level >= FND_LOG.G_CURRENT_RUNTIME_LEVEL) THEN

335: --log it
336: IF b_style_fnd_log THEN
337: --For GSCC compliance, check against constant instead of calling PL/SQL function
338: --Needs to be present even though we have a TEST function
339: IF (p_level >= FND_LOG.G_CURRENT_RUNTIME_LEVEL) THEN
340: FND_LOG.STRING(p_level,
341: p_ctxt,
342: s);
343: END IF;

Line 340: FND_LOG.STRING(p_level,

336: IF b_style_fnd_log THEN
337: --For GSCC compliance, check against constant instead of calling PL/SQL function
338: --Needs to be present even though we have a TEST function
339: IF (p_level >= FND_LOG.G_CURRENT_RUNTIME_LEVEL) THEN
340: FND_LOG.STRING(p_level,
341: p_ctxt,
342: s);
343: END IF;
344: END IF;