The AnswerBook2 product allows you to save the current access or error log to a file and start logging information into an empty file.
To rotate the error log, select Rotate Error Log File from the Admin GUI.
To rotate the access log, select Rotate Access Log File from the Admin GUI.
When the Rotate Access (Error) Log File page appears:
Enter the file name to save to in the Save Log File field.
The default value is current_date.current_log_file_name. Where current_date is of the form YearYearYearYear_MonthMonth_DayDay_HourHour and current_log_file_name defaults to access-8888 or error-8888 (for example, 1997_02_26_14.access-8888.log).
Note that the Log file location field shows you the path to where the file is saved. You cannot change this information on this page.
Click on Apply.
After you change the logging function, you must stop and start the documentation server. Log in as root on the server machine and type the following commands:
# /usr/lib/ab2/bin/ab2admin -o stop # /usr/lib/ab2/bin/ab2admin -o start |
You can also use the following commands to perform these functions:
% /usr/lib/ab2/bin/ab2admin -o rotate_error [-m server_name] [-p server_port] |
% /usr/lib/ab2/bin/ab2admin -o rotate_access [-m server_name] [-p server_port] |