The SAS logging facility and the
SAS log are two different logging systems within SAS.
Traditionally, the SAS
log displays information, warning, and error messages as a result
of executing SAS programs or SAS global statements. Regardless of
their origin, all messages are destined for a single log.
By contrast, the SAS
logging facility is a framework that categorizes and filters log messages
in SAS server and SAS programming environments, and writes log messages
to various output devices. In the server environment, the logging
facility logs messages based on predefined message categories, such
as Admin for administrative messages, App for application messages,
and Perf for performance messages. Messages for a category can be
written to files, consoles, and other system destinations simultaneously.
The logging facility also enables messages to be filtered based on
the following thresholds: TRACE, DEBUG, INFO, WARN, ERROR, and FATAL.
In the programming environment,
if the logging facility is initialized for SAS server logging, messages
are written to logging facility destinations only. If the logging
facility is not initialized for SAS server logging, messages are written
to the SAS log and to logging facility destinations that are created
in a SAS program.