Logfile Viewer

Class Name : org.apache.jetspeed.modules.actions.LogfileViewer


Show the contents of a Log4j logfile.

Additional information about Log4J is available at http://jakarta.apache.org/log4j

Supported Media Types

Description of Media Types.

  • html

Element: parameter

This portlet has no configurable parameters of its own.

Parameters common to many portlets.

Example of Registry Entry

    <portlet-entry name="LogfileViewer" hidden="false" type="ref" parent="GenericMVCPortlet" application="false">
	<security-ref parent="admin-only"/>
		<title>Logfile Viewer</title>
		<description>Utility portlet to view logfiles</description>
	<parameter name="viewtype" value="Velocity" hidden="true"/>		
	<parameter name="action" value="portlets.LogfileViewerAction" hidden="true"/>
	<parameter name="template" value="logfileviewer" hidden="true"/>
	<media-type ref="html"/>
	<category group="Jetspeed">admin</category>

Context or Variables available to a Logfile Viewer template

Below is a list variables that can be used in the Logfile Viewer template. In addition to these, all standard variables for the type of template you select can be used.

appendersjava.util.HashMapMap with list of type org.apache.log4j.Appender
filesjava.util.HashMapMap with filenames of type String
logfileStringContents of selected logfile