dist_tools/
mg_log.pro
includes main-level programtopmg_log
mg_log [, msg] [, /debug] [, /informational] [, /warning] [, /error] [, /critical] [, logger=object] [, /quit]
Messages are logged via this routine. Also, the LOGGER keyword returns the logging object which is used to configure the logging.
Parameters
- msg in optional type=string
message to output; message is optional if the LOGGER keyword is passed a named variable
Keywords
- debug in optional type=boolean
set to specify the message as debug
- informational in optional type=boolean
set to specify the message as informational
- warning in optional type=boolean
set to specify the message as a warning
- error in optional type=boolean
set to specify the message as an error
- critical in optional type=boolean
set to specify the message as critical
- logger out optional type=object
MGlogInfo object
- quit in optional type=boolean
set to quit logging
Examples
Use the LOGGER keyword to retrieve the logger object in order to set the
level or filename of output:
IDL> mg_log, logger=logger
IDL> logger->setProperty, level=3
File attributes
Modification date: | Sun Apr 26 20:18:14 2009 |
Lines: | 74 |
Docformat: | rst rst |