Skip to content

Latest commit

 

History

History
142 lines (124 loc) · 7.33 KB

api-overview.md

File metadata and controls

142 lines (124 loc) · 7.33 KB

Index | Installation | Introduction | API Overview | Package Console | Changelog | Uninstallation

API Overview - Package CONSOLE

For a more detailed overview of the public API methods including examples please see the package console methods. You can also use the links on the method names below.

The console API is inspired by the JavaScript Console API. This means, we have mostly the same log levels and method names. The parameters differs a little bit to fit our needs in PL/SQL. Not all methods making sense in a PL/SQL instrumentation tool (we have no direct screen) and therefore these six are not implemented: clear, dir, dirxml, group, groupCollapsed, groupEnd. We use snake case instead of camel case for readability. As table is a keyword in SQL we named our method table#. The log level verbose is splitted into debug and trace.

We have five log levels:

  • Level 1: Error
  • Level 2: Warning
  • Level 3: Info
  • Level 4: Debug (instead of verbose in JS console)
  • Level 5: Trace (not existing in JS console)

Log entries are saved in a table: select * from console_logs

The main instrumentation methods:

Additional instrumentation methods:

Additional methods to manage logging mode of sessions and to see the current status of the package console:

Additional housekeeping methods:

Additional helper methods (mostly used by console internally) which might also helpful for you: