%LOG4SAS_ERROR Autocall Macro

Logs an ERROR message if the specified logger accepts ERROR messages.
Category: Logging
Requirements: The MAUTOSOURCE system option must be set.
The %LOG4SAS autocall macro must be invoked to initialize SAS logging before this macro is invoked.

Syntax

%LOG4SAS_ERROR(logger-name, message)

Syntax Description

logger-name
specifies the name of the logger to process this log event.
message
specifies the log event message.
Requirement The message must be enclosed in single or double quotation marks.

Details

The %LOG4SAS_ERROR autocall macro is a log event for error messages. In order to log messages using this macro, you must previously define loggers and appenders either in a SAS program or in a logging configuration file.