Administering Logging for SAS Servers |
As a best practice, you should use the initial logging configuration files that are installed by the SAS Deployment Wizard. However, in some situations it might be necessary to make changes to the logging configuration. You can use the following methods to modify a server's logging configuration:
You can adjust logging levels dynamically by using the Server Management features of SAS Management Console. This feature is useful when you want to change the configuration temporarily without stopping the server or spawner. See Using SAS Management Console to Monitor SAS Servers.
You can permanently modify a server's logging configuration by changing its logconfig.xml file. Before modifying a configuration file, be sure to make a backup copy. The following are some examples of changes that you might want to make to a server's logging configuration:
configure RollingFileAppender to use a different log filename, to roll over log files more or less frequently, or to roll over log files based on file size rather than date
specify additional appenders (for example, you might want to define a separate rolling file to capture a particular category of messages)
use filters to limit the events that are written to an appender
configure a different message layout for an appender
You can use the alternative logging configuration files that are provided for troubleshooting. These files are useful when SAS Technical Support requests a higher level of logging. For details, see the following topics:
Collecting ARM Log Information for SAS Data Integration Studio Jobs
Audit Server Logging Level Changes That Originate in Client Applications
Capture Metadata Server Management Events in the System Facility Appender
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.