Jetspeed

ApacheCon US 2003 -- Join US!

Essentials

Download

Documentation

Components

Translated

Get Involved

Logfile Viewer

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


Description

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"/>
	<meta-info>
		<title>Logfile Viewer</title>
		<description>Utility portlet to view logfiles</description>
	</meta-info>
	<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>
    </portlet-entry>


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.

Context Classname Description
appenders java.util.HashMap Map with list of type org.apache.log4j.Appender
files java.util.HashMap Map with filenames of type String
logfile String Contents of selected logfile



Copyright © 1999-2003, Apache Software Foundation