PolyServe Understudy 1.3

6. Server Log files

6.1 Reading a Log File

To read a server's log file, first select the server whose log file you wish to read by pointing the mouse on the appropriate server and clicking on the mouse left button. After the server is selected, choose the Read option from the Server Log menu. This will open a window in which the last 100 lines from the server's log file are displayed.
Note:
This action may take a few seconds to complete since the file might be long and is sent over the network.

Note:
The lines are displayed so that more recent activities in the appear on top, and the oldest activity appears at the bottom of the window.

Note:
Each server maintains its own log file, and this operation will only display the log file of the selected server.

6.2 Setting the Maximum Length of a Log File

To set the maximum length of a log file on a given cluster server, first select the server by pointing the mouse on the appropriate server and clicking on the mouse left button. After the server is selected, choose the Set Maximum Length option from the Server Log menu. Understudy will then open a dialog box in with you can set the desired length of the log file. After setting the file length, click on OK to authorize, or Cancel to cancel.
Note:
A small number of lines in the log file will save disk space, but also mean that less information about the history of the cluster is saved.

Note:
Each server maintains its own log file, and this operation will only set the length of the log file at the selected server.

6.3 Truncating a Log File

To truncate a server's log file, first select the server by pointing the mouse on the appropriate server and clicking on the mouse left button. After the server is selected, choose the Truncate option from the Server Log menu. Understudy will then open a dialog box in which you are requested to choose the number of lines to truncate. After entering the desired number of lines you wish to truncate, click on OK to authorize, or Cancel to cancel.
Note:
Trying to truncate more lines than currently exist in the log file will result in an empty log file.

Note:
When truncating the log files, the oldest lines are the ones being deleted.

Note:
Each server maintains its own log file, and this operation will only truncate the log file at the selected server.