7:
8: -- Logging level during package execution will not change so we can
9: -- define a single runtime level here, and update it at the start
10: -- of public procedures
11: runtimeLogLevel Number := FND_LOG.g_current_runtime_level;
12: packageName CONSTANT Varchar2(30) := 'GCS_AD_ENGINE';
13:
14: -- Context switches to FND_LOG for level constants can
15: -- be avoided by copying them here once
10: -- of public procedures
11: runtimeLogLevel Number := FND_LOG.g_current_runtime_level;
12: packageName CONSTANT Varchar2(30) := 'GCS_AD_ENGINE';
13:
14: -- Context switches to FND_LOG for level constants can
15: -- be avoided by copying them here once
16: statementLogLevel CONSTANT NUMBER := FND_LOG.level_statement;
17: procedureLogLevel CONSTANT NUMBER := FND_LOG.level_procedure;
18: eventLogLevel CONSTANT NUMBER := FND_LOG.level_event;
12: packageName CONSTANT Varchar2(30) := 'GCS_AD_ENGINE';
13:
14: -- Context switches to FND_LOG for level constants can
15: -- be avoided by copying them here once
16: statementLogLevel CONSTANT NUMBER := FND_LOG.level_statement;
17: procedureLogLevel CONSTANT NUMBER := FND_LOG.level_procedure;
18: eventLogLevel CONSTANT NUMBER := FND_LOG.level_event;
19: exceptionLogLevel CONSTANT NUMBER := FND_LOG.level_exception;
20: errorLogLevel CONSTANT NUMBER := FND_LOG.level_error;
13:
14: -- Context switches to FND_LOG for level constants can
15: -- be avoided by copying them here once
16: statementLogLevel CONSTANT NUMBER := FND_LOG.level_statement;
17: procedureLogLevel CONSTANT NUMBER := FND_LOG.level_procedure;
18: eventLogLevel CONSTANT NUMBER := FND_LOG.level_event;
19: exceptionLogLevel CONSTANT NUMBER := FND_LOG.level_exception;
20: errorLogLevel CONSTANT NUMBER := FND_LOG.level_error;
21: unexpectedLogLevel CONSTANT NUMBER := FND_LOG.level_unexpected;
14: -- Context switches to FND_LOG for level constants can
15: -- be avoided by copying them here once
16: statementLogLevel CONSTANT NUMBER := FND_LOG.level_statement;
17: procedureLogLevel CONSTANT NUMBER := FND_LOG.level_procedure;
18: eventLogLevel CONSTANT NUMBER := FND_LOG.level_event;
19: exceptionLogLevel CONSTANT NUMBER := FND_LOG.level_exception;
20: errorLogLevel CONSTANT NUMBER := FND_LOG.level_error;
21: unexpectedLogLevel CONSTANT NUMBER := FND_LOG.level_unexpected;
22:
15: -- be avoided by copying them here once
16: statementLogLevel CONSTANT NUMBER := FND_LOG.level_statement;
17: procedureLogLevel CONSTANT NUMBER := FND_LOG.level_procedure;
18: eventLogLevel CONSTANT NUMBER := FND_LOG.level_event;
19: exceptionLogLevel CONSTANT NUMBER := FND_LOG.level_exception;
20: errorLogLevel CONSTANT NUMBER := FND_LOG.level_error;
21: unexpectedLogLevel CONSTANT NUMBER := FND_LOG.level_unexpected;
22:
23: -- Globally useful storage - make them global to the package so we
16: statementLogLevel CONSTANT NUMBER := FND_LOG.level_statement;
17: procedureLogLevel CONSTANT NUMBER := FND_LOG.level_procedure;
18: eventLogLevel CONSTANT NUMBER := FND_LOG.level_event;
19: exceptionLogLevel CONSTANT NUMBER := FND_LOG.level_exception;
20: errorLogLevel CONSTANT NUMBER := FND_LOG.level_error;
21: unexpectedLogLevel CONSTANT NUMBER := FND_LOG.level_unexpected;
22:
23: -- Globally useful storage - make them global to the package so we
24: -- don't have to pass them from procedure to procedure as args.
17: procedureLogLevel CONSTANT NUMBER := FND_LOG.level_procedure;
18: eventLogLevel CONSTANT NUMBER := FND_LOG.level_event;
19: exceptionLogLevel CONSTANT NUMBER := FND_LOG.level_exception;
20: errorLogLevel CONSTANT NUMBER := FND_LOG.level_error;
21: unexpectedLogLevel CONSTANT NUMBER := FND_LOG.level_unexpected;
22:
23: -- Globally useful storage - make them global to the package so we
24: -- don't have to pass them from procedure to procedure as args.
25: requestId number(15); --concurrent request id
196: errBuf );
197: end if;
198: */
199: if logLevel >= runtimeLogLevel then
200: FND_LOG.string(
201: logLevel,
202: rootString || logProc || '.' || logLabel,
203: errBuf);
204: end if;