To use the SAS logging facility, you must set up your
logging environment:
-
Define a logging configuration,
which configures appenders and loggers. You can define the configuration
by setting up an XML file or by using SAS language elements. If you
perform a planned deployment, then logging configuration files are
provided for your SAS servers.
-
Specify the LOGCONFIGLOC= system
option to enable logging, if you are using configuration files. If
you perform a planned deployment, then this system option is included
in the SAS configuration files for your SAS servers.
-
Issue log events in a format that
can be processed by the logging facility, if you are developing your
own SAS programs.
Note: You can experiment with the
logging facility without creating logging configuration files. SAS
provides three basic logging configurations that write messages to
either a file, the current console, or to the traditional SAS log
using the root logger.
For more information, see LOGCONFIGLOC= System Option.