Show the contents of a Log4j logfile.
Additional information about Log4J is available at http://jakarta.apache.org/log4j
<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>
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 |