The SAS Logging Facility in the SAS Language |
After loggers and appenders are defined, you can add log events to your program. You insert log events at any point in your program or DATA step that you want to log a message. A log event takes three arguments: a logger name, a level, and the log message.
The logger that you specify in the log event names the message category for the message. It can be a category that you created in your SAS program or a category that is defined for SAS servers. The diagnostic level indicates one of the following diagnostic types for the message: TRACE, DEBUG, INFO, WARN, ERROR, and FATAL. The log message is the message that you want to appear in the log. Enclose the message in single or double quotation marks.
For more information, see the following topics:
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.