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

Home » Public Forums » archive » Log system ??
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Log system ?? [message #86675 is a reply to message #43865] Wed, 27 November 2013 11:37 Go to previous messageGo to previous message
spluque is currently offline  spluque
Messages: 33
Registered: September 2013
Member
I found this old post while searching for a way to log error messages.

I use the MESSAGE procedure quite a lot. In some long procedures, I often use it as:

message, 'Txt', /continue

when I want to report an error of some kind but continue with other operations. I'd like to be able to log these messages to a file, as they are printed in the terminal when they are encountered. It would be nice to have something like a /FILE keyword to MESSAGE, but I suspect there's a reason for its inexistence. Any tips?

Thanks,
Seb


On Thursday, May 5, 2005 3:46:13 AM UTC-5, Antonio Santiago wrote:
> Hi,
> is there any log sytem in IDL ?
>
> I'm programming a little procedure to write information to terminal (or
> to a file) with information/error/debug messages, for example:
>
> IDL> logmsg, 'INFO', 'Example message'
>
> that prints:
>
> Thu May 5 10:42:47 2005 - (INFO) - [$MAIN$]: Example message
>
>
> Exists any good tool for this in IDL.
>
> I'm reading the MESSAGE procedure but it can't write to files, no?
>
> Thanks,
>
> Antonio.
>
>
> --
> -----------------------------------------------------
> 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
> -----------------------------------------------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Variable Pixel Spacing for Images in IDL
Next Topic: Updated Coyote Mapping Routines

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

Current Time: Wed Oct 08 18:21:24 PDT 2025

Total time taken to generate the page: 0.00435 seconds