alangibson / log4plsql Goto Github PK
View Code? Open in Web Editor NEWLOG4PLSQL
License: Other
LOG4PLSQL
License: Other
Hi!
Do you practice this? Please give advice.
Kind regards,
Rustam
It may be usefull to add SID (as LSID field) into table TLOG and Log4J queues. LSID field helps to identify session's logging messages.
PLOGPARAM package definition has DEFAULT_USE_LOG4J constant for LOG4J output mode in lines.
There is a check if package PLOG_OUT_AQ is installed.
A package PLOG_OUT_AQ may be installed by user: see install.sql
If PLOG_OUT_AQ package is not installed, we got an error in default output context:
SQL> exec plog.fatal( 'text' );
BEGIN plog.fatal( 'text' ); END;
*
ERROR at line 1:
ORA-20200: Parameter USE_LOG4J is TRUE but no advanced queue output (package
PLOG_OUT_AQ) is installed
ORA-06512: at "PL_SQL.PLOG", line 1432
ORA-06512: at "PL_SQL.PLOG", line 1542
ORA-06512: at "PL_SQL.PLOG", line 1824
ORA-06512: at "PL_SQL.PLOG", line 3056
ORA-06512: at line 1
For the case a developer using log4plsql misses closing sections at the end of logical structures (i do that in procedures/functions) or in exception blocks, this might lead to an error at Plog.setbeginsection when Pctx.Lsection overflows and throws a ORA-6502 in Line 342 as it would be expected.
I'd prefer the logging does not throw exceptions though :) Hopefully you do, too.
BTW thanks for the nice updates!
Kind regards,
Michael
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.