Skip to content

Commit

Permalink
add 7.2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
baxtheman committed Sep 27, 2019
1 parent 02983c8 commit ad419b6
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Liferay Log Viewer Portlet

## FORK & REVAMP FROM THE ORIGINAL GOOD LOG VIEWER BY Permeance (Thank you!!)
## FORK & REVAMP FROM THE ORIGINAL GOOD LOG VIEWER BY Permeance Technologies (Thank you from whole community)

This project provides a portlet that attaches to the Liferay Portal's log4j mechanism to provide a log view within the browser.

Expand Down
17 changes: 15 additions & 2 deletions bin/main/META-INF/resources/view.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ page import="au.com.permeance.utility.logviewer.portlets.PortletPropsValues" %>
message="ui-request-processed-error"
/>
<script type="text/javascript">
<aui:script>
window.errorThreshold = 10;
window.consecutiveErrorCount = 0;
Expand Down Expand Up @@ -115,7 +115,19 @@ page import="au.com.permeance.utility.logviewer.portlets.PortletPropsValues" %>
}
window.pollingIntervalId = setInterval(poll, <%= String.valueOf(PortletPropsValues.PERMEANCE_LOG_VIEWER_REFRESH_INTERVAL) %>);
</script>
Liferay.on('startNavigate', function() {
clearTimeout(window.pollingIntervalId);
detachlogger();
});
Liferay.on('endNavigate', function(event) {
clearTimeout(window.pollingIntervalId);
detachlogger();
});
</aui:script>
<div class="container">
Expand Down Expand Up @@ -144,6 +156,7 @@ page import="au.com.permeance.utility.logviewer.portlets.PortletPropsValues" %>
<p class="small">
<em><liferay-ui:message key="you-can-set-portal-property" /> <b>permeance.log.viewer.autoattach</b> <liferay-ui:message key="autoattach-description" /></em><br />
<em><liferay-ui:message key="you-can-set-portal-property" /> <b>permeance.log.viewer.pattern</b> <liferay-ui:message key="pattern-description" /></em><br /><br />
<em>Credits: Permeance Technologies & <a href="https://twitter.com/baxtheman">@baxtheman</a></em>
</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions bnd.bnd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Bundle-Name: liferay-log-viewer
Bundle-SymbolicName: au.com.permeance.utility.logviewer
Bundle-Version: 7.1.2.1
-sources: true
Bundle-Version: 7.2.0.1
-sources: true
16 changes: 8 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
dependencies {
compileOnly group: "com.liferay", name: "com.liferay.application.list.api", version: "1.0.0"
compileOnly group: "com.liferay", name: "com.liferay.petra.string", version: "2.1.4"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "3.0.0"
compileOnly group: "com.liferay.portal", name: "com.liferay.util.bridges", version: "2.0.0"
compileOnly group: "com.liferay.portal", name: "com.liferay.util.taglib", version: "2.0.0"
compileOnly group: "com.liferay", name: "com.liferay.application.list.api"
compileOnly group: "com.liferay", name: "com.liferay.petra.string"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel"
compileOnly group: "com.liferay.portal", name: "com.liferay.util.bridges"
compileOnly group: "com.liferay.portal", name: "com.liferay.util.taglib"
compileOnly group: "commons-io", name: "commons-io", version: "2.6"
compileOnly group: "javax.portlet", name: "portlet-api", version: "3.0.0"
compileOnly group: "javax.servlet", name: "javax.servlet-api", version: "3.0.1"
compileOnly group: "org.osgi", name: "org.osgi.service.component.annotations", version: "1.3.0"
compileOnly group: "javax.portlet", name: "portlet-api"
compileOnly group: "javax.servlet", name: "javax.servlet-api"
compileOnly group: "org.osgi", name: "org.osgi.service.component.annotations"
}

0 comments on commit ad419b6

Please sign in to comment.