Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: throw - Function Up: misc - Module Previous: edit - Function


note - Function



Package utility
Module misc


Send a message to the logger or terminal


Synopsis
note(..., priority, origin, time, postcli)

include "note.g"



Synopsis
edit(..., priority='NORMAL', origin='Glish', time='')(..., priority, origin, time, postcli)



Description
Use note to send a message to the logger if AIPS++is running, otherwise it sends it to the screen. This is useful if you are writing Glish functions that should function in AIPS++and non-AIPS++environments. In particular, sending a message doesn't start AIPS++, but if AIPS++is already started then the message is logged.

The priority defaults to NORMAL and the origin to Glish, however these can be overridden if desired.



Arguments

... in components of the message
    Allowed: string
priority in Message priority
    Allowed: DEBUGGING,NORMAL,WARN,SEVERE
    Default: NORMAL
origin in source of the message
    Allowed: string
    Default: 'Glish'
time in time as a string
    Allowed: string
    Default: Current time
postcli in Show message in CLI window too?
    Allowed: Bool
    Default: F



Example
 - note('The value of x is', x);



See Also
1.
The AIPS++logger
2.
throw





next up previous contents index
Next: throw - Function Up: misc - Module Previous: edit - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15