Creating Log Events in a SAS Program

After loggers and appenders are defined either in a logging configuration file or a SAS program, 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.