Previous Page | Next Page

Administering SAS Web Applications

Administering Logging for SAS Web Applications


Administering Logging Service Settings for Web Applications


Logging for SAS Web Applications

The SAS 9.2 Intelligence Platform uses a standard logging facility to perform logging for SAS servers. In SAS Management Console, the Logging Service Configuration dialog box enables you to accomplish several tasks for SAS Web applications:

For an overview and guidelines about logging, see "Administering Logging for SAS Servers" in the SAS Intelligence Platform: System Administration Guide.

The logging configuration for each application is controlled independently. For example, you can choose an application, such as SAS Web Report Studio or SAS Information Delivery Portal, and view or set logging levels for the application.

To see the logging configuration for a SAS application, follow these steps:

  1. Log on to SAS Management Console.

  2. On the Plug-ins tab, navigate to Environment Management [arrow] Foundation Services Manager [arrow] <Application> [arrow] Core [arrow] Logging Service.

  3. Right-click Logging Service and select Properties. The Logging Service Properties dialog box appears.

  4. Select the Service Configuration tab and then click Configuration. The Logging Service Configuration dialog box appears for the application.

The following display shows an example Logging Service Configuration dialog box.

Example Logging Service Configuration Dialog Box

[Example Logging Service Configuration Dialog Box]

For information about how to modify and customize the logging, see "Modifying Service Configurations" in the SAS Foundation Services: Administrator's Guide.

By default, the Logging Service Configuration dialog box in SAS Management Console contains two output types:

One is a console output and the other is a file output.

Message logging is accomplished with a logging context. A logging context is usually the fully qualified class name of the class where the logging message originated. In the SAS Management Console, logging contexts are created or edited in the Logging Service Context window (accessed through the Logging Service Configuration dialog box).

The following logging contexts are common to all SAS applications:

The five logging contexts are five packages that represent different locations in SAS software. These logging contexts should not be edited, but you can remove them or add additional logging contexts.

For detailed information about the logging facility, see SAS Logging: Configuration and Programming Reference.


Change the Location of the Log Files

By default, log files are stored in the SAS-configuration-directory\Lev\Web\Logs directory. Typically, you change the directory path for the location of the log files, if you have a clustered environment.

To modify the location of a log file, follow these steps:

  1. Log on to SAS Management Console.

  2. On the Plug-ins tab, navigate to Environment Management [arrow] Foundation Services Manager [arrow] <Application> [arrow] Core [arrow] Logging Service.

  3. Right-click Logging Service and select Properties. The Logging Service Properties dialog box appears.

  4. Select the Service Configuration tab and then click Configuration. The Logging Service Configuration dialog box appears for the application.


Change the Logging Levels

In the SAS Management Console, the Logging Service Configuration window enables you to configure the settings for logging. The log has five levels of detail: DEBUG, INFO, WARN, ERROR, and FATAL. Enabling a level also enables the less detailed levels above the selected level. By default, the level is set to WARN, which means that only WARN, ERROR, and FATAL messages are recorded. In large-scale deployments, the size of the log file can grow rapidly when INFO messages are enabled. However, you might want to enable the INFO messages during the development and testing phases.

CAUTION:
Excessive logging can degrade performance. Therefore, you should not use the DEBUG logging level unless you are directed to do so by SAS Technical Support.   [cautionend]

If you need to debug a problem, it is recommended that you dynamically change the log output temporarily.

For an explanation of all warnings, see "Administering Logging for SAS Servers" in the SAS Intelligence Platform: System Administration Guide.

To change the types of messages that are stored in the log, choose the priority level for the appropriate logging context in the Logging Context dialog box. Here is a brief description of each type of logging:

DEBUG

displays the informational events that are most useful for debugging an application.

INFO

displays informational messages that highlight the progress of the application.

WARN

displays potentially harmful situations.

ERROR

displays error events that might allow the application to continue to run.

FATAL

displays very severe error events that might cause the application to end abnormally.

To enable a different level of log messages for an application, follow these steps:

  1. Log on to SAS Management Console.

  2. On the Plug-ins tab, navigate to Environment Management [arrow] Foundation Services Manager [arrow] <Application> [arrow] Core [arrow] Logging Service.

  3. Right-click Logging Service and select Properties. The Logging Service Properties dialog box appears.

  4. Select the Service Configuration tab and then click Configuration. The Logging Service Configuration dialog box appears for the application.

  5. On the Contexts tab, select a context and click Edit. The Edit Logging Service Context dialog box appears.

  6. Select the desired level of warning from the Priority drop-down list box.

  7. Click OK to exit from each window.

  8. To enforce the changes that you have made, restart the SAS Web application.


Understanding How the Web Applications Provide a Logging Context

The SAS Web Infrastructure Platform has implemented a framework for providing separate logging contexts for the individual SAS Web applications. It is useful to understand how SAS implements individual logging contexts in case you need to modify any of the related configuration files. In addition, you might want to create a logging context for Web applications that are developed at your site.

The SAS Web applications implement this capability as follows:

Previous Page | Next Page | Top of Page