Looking for a package for debuging purpose

From: Christian BIERO <cbiero_at_gold-solutions.com>
Date: Fri, 7 Apr 2000 16:39:18 +0200
Message-ID: <8ckrv1$n8k$1_at_front5m.grolier.fr>









Hello, I'm newbie in packages creation.
I'm looking for a package (let's call it pac_debug)
which can be called in other package to store debug information.
This package should be disabled using a variable.
 

It looks like :
 
pac_on    : set pac_debug.flgdebug to TRUE
pac_off   : set pac_debug.flgdebug to FALSE
pac_debug : put the message in table TB_DEBUG with the date if pac_debug.flgdebug is TRUE
  otherwise message is ignored
 
Example:
========
 
another_package
 
blah
blah
pac_debug('my message No1');
blah
blah
pac_debug('my message No2');
blah
blah
pac_debug('my message No3');
 
end of another_package
 

I'll be happy to have any example on which I can work on.
Thx

--
     _  ____________________________________________________________  _
    / ) |     BIERO Christian      | Tél:     +33 (0)1 464 828 00  | ( \
   / /  |       O.I. Synform       | FAX:     +33 (0)1 464 828 01  |  \ \
 _( /_  | _  37, rue du Colonel    | mailto:                     _ |  _) )_
(((\ \> |/ )          Pierre Avia  |  cbiero_at_gold-solutions.com ( \| </ /)))
(\\\\ \_/ /  75508 Paris Cedex 15  | http://www.gold-solutions.com \_/ ////)
 \       /_________________________|______________________________\        /
  \    _/                                                          \_     /
  /   /                                                              \    \
 /   /                                                                \    \
Received on Fri Apr 07 2000 - 16:39:18 CEST

Original text of this message