IDEMPIERE-5911 : [IDempiere Monitor] Open Log File on New Tab (#2089)

This commit is contained in:
Zuhri Utama 2023-11-05 11:44:26 +07:00 committed by GitHub
parent d217eb531e
commit ee212b7d37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1189,7 +1189,7 @@ public class AdempiereMonitor extends HttpServlet
// //
line = new tr(); line = new tr();
line.addElement(new th().addElement("Trace File")); line.addElement(new th().addElement("Trace File"));
line.addElement(new td().addElement(new a ("idempiereMonitor?Trace=" + systemInfo.getCurrentLogFile(), "Current"))); line.addElement(new td().addElement(new a ("idempiereMonitor?Trace=" + systemInfo.getCurrentLogFile(), "Current", "Current", "Current")));
table.addElement(line); table.addElement(line);
// //
line = new tr(); line = new tr();
@ -1218,7 +1218,7 @@ public class AdempiereMonitor extends HttpServlet
int index = fileName.lastIndexOf(File.separator); int index = fileName.lastIndexOf(File.separator);
if (index > 1) if (index > 1)
displayName = fileName.substring(index+1); displayName = fileName.substring(index+1);
a link = new a ("idempiereMonitor?Trace=" + fileName, displayName); a link = new a ("idempiereMonitor?Trace=" + fileName, displayName, displayName, displayName);
p.addElement(link); p.addElement(link);
int size = (int)(logFile.getFileSize()/1024); int size = (int)(logFile.getFileSize()/1024);
if (size < 1024) if (size < 1024)