framework/webtools/widget/LogScreens.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="log-decorator">
<section>
<actions>
<set field="activeSubMenu" from-field="activeSubMenu" default-value="Server" />
</actions>
<widgets>
<decorator-screen name="CommonWebtoolsAppDecorator" location="${parameters.mainDecoratorLocation}">
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ServiceLog">
<section>
<actions>
<set field="titleProperty" value="PageTitleServiceList"/>
<set field="activeSubMenuItem" value="serviceLog"/>
<script location="component://webtools/webapp/webtools/WEB-INF/actions/service/Services.groovy"/>
</actions>
<widgets>
<decorator-screen name="log-decorator">
<decorator-section name="body">
<screenlet>
<include-form name="ListServices" location="component://webtools/widget/ServiceForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- Merging with LogView
<screen name="LogConfiguration">
<section>
<actions>
<set field="titleProperty" value="PageTitleLogConfiguration"/>
<set field="activeSubMenuItem" value="logConfiguration"/>
<script location="component://webtools/webapp/webtools/WEB-INF/actions/log/LogConfiguration.groovy"/>
</actions>
<widgets>
<decorator-screen name="log-decorator">
<decorator-section name="body">
<screenlet title="${uiLabelMap.WebtoolsDebuggingLevelFormDescription}">
<include-form name="LevelSwitch" location="component://webtools/widget/LogForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>-->
<screen name="LogView">
<section>
<actions>
<set field="titleProperty" value="PageTitleLogView"/>
<set field="activeSubMenuItem" value="logging"/>
<!-- TODO: the following command is not really working (and the default value is always used);
my guess is that the base/config/debug.properties file is not found in the classpath -->
<property-to-field resource="debug" property="log4j.appender.css.File" field="logFileName" default="runtime/logs/ofbiz.log" no-locale="true"/>
<script location="component://webtools/webapp/webtools/WEB-INF/actions/log/LogView.groovy"/>
<script location="component://webtools/webapp/webtools/WEB-INF/actions/log/LogConfiguration.groovy"/>
</actions>
<widgets>
<decorator-screen name="log-decorator">
<decorator-section name="body">
<screenlet title="${uiLabelMap.WebtoolsDebuggingLevelFormDescription}">
<include-form name="LevelSwitch" location="component://webtools/widget/LogForms.xml"/>
</screenlet>
<screenlet>
<!-- Remove?!
<container style="button-bar">
<link target="LogView" text="${uiLabelMap.CommonRefresh}" style="${styles.link_run_sys} ${styles.action_reload}"/>
</container>-->
<container style="">
<label style="">${uiLabelMap.WebtoolsLogFileName}:</label>
<label style="">${logFileName}</label>
</container>
<platform-specific>
<html><html-template location="component://webtools/webapp/webtools/log/logContent.ftl"/></html>
</platform-specific>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>