Changeset 8129
- Timestamp:
- Mar 14, 2023, 11:42:59 AM (7 months ago)
- Location:
- branches/3.19-stable
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.19-stable/src/core/net/sf/basedb/util/extensions/logging/ExtensionsLog.java
r8127 r8129 232 232 if (entry.getLevel() == LogLevel.ERROR) numErrors++; 233 233 234 if ( numEntries++> maxEntries)234 if (++numEntries > maxEntries) 235 235 { 236 236 // Remove one entry -
branches/3.19-stable/www/admin/extensions/details.jsp
r8128 r8129 149 149 String logIcon = "service_log.png"; 150 150 String logSummary = "This extension doesn't have any log"; 151 int numEntries = 0; 151 152 ExtensionsLog log = ExtensionsLog.getLog(extensionId, false); 152 153 if (log != null) 153 154 { 155 numEntries = log.getNumEntries(); 154 156 logSummary = "View the log for this extension; "+ 155 log.getNumEntries()+" entries; " +157 numEntries +" entries; " + 156 158 log.getNumErrors()+" errors; "+ 157 159 log.getNumWarnings()+" warnings"; … … 181 183 tooltip="<%=logSummary%>" 182 184 visible="<%=log != null%>" 183 title=" View log…"185 title="<%="View log ("+numEntries+")…"%>" 184 186 /> 185 187 <tbl:button -
branches/3.19-stable/www/admin/extensions/view_log.js
r8128 r8129 32 32 // Close button 33 33 Buttons.addClickHandler('close', App.closeWindow); 34 34 35 Buttons.addClickHandler('btnUpdate', App.reloadWindow); 35 36 Buttons.addClickHandler('btnClearLog', vlog.clearLog); 36 37 Events.addEventHandler('enableDebug', 'change', vlog.setOptions); -
branches/3.19-stable/www/admin/extensions/view_log.jsp
r8128 r8129 87 87 <tbl:toolbar> 88 88 <tbl:button 89 id="btnUpdate" 90 title="Update" 91 image="refresh.png" 92 tooltip="Re-load this page" 93 /> 94 <tbl:button 89 95 id="btnClearLog" 90 96 title="Clear the log" 91 97 image="delete.png" 98 tooltip="Delete all entries from the log" 92 99 /> 93 100 <tbl:label style="padding-right: 1em;"> … … 151 158 <% 152 159 } 160 if (entryNo == 0) 161 { 162 %> 163 <tbl:panel subclass="bg-filled-50"> 164 <div class="messagecontainer note"> 165 No entries in this log. 166 </div> 167 </tbl:panel> 168 <% 169 } 153 170 %> 154 171 </tbl:rows>
Note: See TracChangeset
for help on using the changeset viewer.