Logging Component


Logging


Package lib_log defines 5 methods: add_debug, add_info, add_warning, add_error, add_fatal

PROCEDURE add_*
(
   psSource IN VARCHAR2,
   psText IN VARCHAR2,
   psParameters IN VARCHAR2 DEFAULT NULL,
   pbAddSessionInfo IN BOOLEAN DEFAULT TRUE
);

Usage example:
BEGIN
   n := 1/0;
EXCEPTION
   WHEN OTHERS THEN
      lib_log.add_error('lib_date.parse', sqlerrm);
END;

Last edited Jan 21, 2011 at 11:11 PM by alekseiv, version 2

Comments

No comments yet.