Home »
Public Forums »
archive »
Logging system utility
Logging system utility [message #44211] |
Mon, 30 May 2005 03:45 |
Antonio Santiago
Messages: 201 Registered: February 2004
|
Senior Member |
|
|
Hi,
I would like to put a link to my webpage (this isn't SPAM :) ) that
contains little examples and explanations for a set of classes that can
help us (at least myself) developing application.
The more self explanatory example is the next:
;;At main procedure we need to create the logging object.
...
log = Logging(LEVEL='info')
...
log->warning, 'This is a WARNING level message'
...
;;At any site of our program we can obtain a reference to the object
;;and write any message.
PRO anyProcedure
...
log = Logging()
log->warning, 'This is a WARNING level message'
...
END
The formatted text includes:
Time+Date - (Level of message) - [Routine writtes the msg] : The message
for example:
Mon May 30 12:28:09 2005 - (WARNING) - [$MAIN$]: this is a WARNING level
message
Mon May 30 12:28:25 2005 - (INFO) - [$MAIN$]: this is an INFO level message
Bye.
PS: I want to note most of the code for Logging and LoggingFile classes
was sent me by Jeremy Faden <http://www.cottagesystems.com> and the idea
for implementing the singleton was taken from an old IDL news message of
Robert S. Mallozzi. Thanks to both.
PS2: I wouldn't seem bad-mannered or disagreeable but I don't know why
the personal page of deceased Mallozi is not abailabe: for respect to
him or rights problems. I suppose he had got many good ideas and
utilities there.
--
-----------------------------------------------------
Antonio Santiago P�rez
( email: santiago<<at>>grahi.upc.edu )
( www: http://www.grahi.upc.edu/santiago )
( www: http://asantiago.blogsite.org )
-----------------------------------------------------
GRAHI - Grup de Recerca Aplicada en Hidrometeorologia
Universitat Polit�cnica de Catalunya
-----------------------------------------------------
|
|
|
Current Time: Wed Oct 08 19:04:38 PDT 2025
Total time taken to generate the page: 0.38731 seconds