Re: Log system ?? [message #86675 is a reply to message #43865] |
Wed, 27 November 2013 11:37   |
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
> -----------------------------------------------------
|
|
|