You are currently viewing Zend Server 5.x documentation. Click here to view the latest Zend Server online documentation.
You are here: Zend Server User Guide > Tasks > Working with Logs

Working with Logs

 

The Logs page is a log viewer for developers to view log information directly from the Administration Interface.

From this page you can view, filter, navigate and refresh logs.

Advanced users can also add logs to the list of logs to display in the "Log View" list.

View a Log

This procedure describes how to view a log file.

 

 

Instructions on how to complete a procedure

To view a log file:

  1. Go to Monitor | Logs.

  2. Select a log from the View Log list.

  3. The log information is displayed in the main display area.

Use the Show option Viewing Logs (located below the main display) to determine how many lines to display. To use this option, enter a number between 5 and 200 and click Go to apply the setting.

Filter Log Information

This procedure describes how to filter a log file to fine tune the information to display specific results.

 

 

Instructions on how to complete a procedure

To filter a log file:

  1. Select a log to display.

  2. Go to the Filter area and enter the text to use for the filter: You can use any text.

  3. Click Refresh or Find.
    The results are displayed in the main display area.

 To run another query, change the text in the Filter area and click Refresh. There is no need to display the complete log again.

Navigate Inside a Log

This procedure describes the different navigation options available for navigating inside a selected log file.

 

 

Instructions on how to complete a procedure

Start - displays the first X lines of the log file.

Prev - shows the previous X lines of the log file.

Next - Shows the Next X lines of the log file.

End - displays the last X lines of the log file

'X' represents the number of lines that you specified in the Show option . The default value is 20.

Activate 'Auto refresh'

The following procedure describes how to activate and deactivate the Auto refresh option. The Auto refresh option sets the log information to display the most recent log entries in the last lines of the log that is currently being viewed. Therefore, as the log changes over time, the content in the view is always current. This feature provides an easy way to view errors in "almost real-time". (Because the refresh rate is in seconds, there is at least a 3-5 second display lag, which is why the Auto refresh feature is not considered true real-time logging.)

 

 

Instructions on how to complete a procedure

To activate Auto refresh:

  1. Select a log to display.

  2. Click the Auto refresh check box to automatically refresh the log information.

As long as the log is displayed, the information is refreshed. Each time you choose another log or exit the page, the settings are reset.

Advanced - Add logs to the list of logs in the "Log View" list.

It is possible to add and display other logs that are specific to your environment in the Log Tail page.

To add other logs requires that you view and access backend application files which, in normal circumstances, should not be changed. For this reason, we request that you perform this task only if you clearly understand the instructions. If for some reason the system does not load or malfunctions, please re-install Zend Server for IBMi.

Power users may edit the XML file in /gui/application/data/logfiles.xml to add as many logs as they may have.

 

 

Instructions on how to complete a procedure

To add log files to the list:

  1. Open the file <install_path>/gui/application/data/logfiles.xml.

  2. Add the name and location (full path) of the log files in the same format as the existing files and save.

  3. Restart your PHP.

 

 

 

Related Links

Related Links:

Logs

Log Rotation

Log File Permissions

 

 

 

© 1999-2013 Zend Technologies, Ltd. All rights reserved.