comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Logging system utility
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Logging system utility [message #44211] Mon, 30 May 2005 03:45
Antonio Santiago is currently offline  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
-----------------------------------------------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: printing IDLgrScene
Next Topic: Re: Logging system utility

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:04:38 PDT 2025

Total time taken to generate the page: 0.38731 seconds