LASR Procedure

Example 2: Starting a Server with Logging Options

Details

This PROC LASR example demonstrates how to start a server instance and specify logging options.

Program

option set=GRIDHOST="grid001.example.com";
option set=GRIDINSTALLLOC="/opt/TKGrid";

proc lasr 
    create port=10010 
    path="/tmp"
    noclass
    logging(path="/opt/logs" maxfilesize=5 keeplog clf);

    performance nodes=all;
run;

Program Description

The logging statement modifies the default logging behavior. Log files are written to /opt/logs instead of the default directory, /tmp. The log files are rolled over when they reach five megabytes. The KEEPLOG option is used to keep the log files when the server exits rather than delete them.