View Issue Details

IDProjectCategoryView StatusLast Update
0035551mantisbtadministrationpublic2025-03-14 19:10
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Target Version2.28.0Fixed in Version2.28.0 
Summary0035551: Improve output of log events when $g_log_destination = 'page'
Description

This display suffers from several issues

  • invalid HTML structure results in incorrect display, as pointed out by @atrol in 0022098:0069943
  • Since introduction of Modern UI, duplicate SQL queries in DB log entries are no longer highlighted in color
  • The Debug Log string in the section header is not localized
  • Code is messy and dated, needs refactoring

Additionally, the following ideas for improvement were identified in 0022098 and @raspopov's PR https://github.com/mantisbt/mantisbt/pull/2115

  • make the Debug log section collapsible
  • display the number of events logged
TagsNo tags attached.

Relationships

related to 0022098 resolvedcommunity Setting bottom_include_page does not include specified file 

Activities

Related Changesets

MantisBT: master d3948320

2025-03-06 06:39

dregad


Details Diff
Refactor log_print_to_page()

- use HEREDOC instead of individual echo statements
- Fix invalid HTML
- Use helper_log_to_page()
- Use a single loop instead of 2 to process log events

Fixes 0022098, 0035551
Affected Issues
0022098, 0035551
mod - core/logging_api.php Diff File

MantisBT: master 8203d185

2025-03-06 06:46

dregad


Details Diff
Identify duplicate DB queries in Debug Log to page

Commit b795b259463deca6e15806369a070c3b2fa45322 removed the CSS class
`duplicate-query`.

This restores the formatting, selected color matches the section title
(widget-color-red).

Fixes 0035551
Affected Issues
0035551
mod - css/default.css Diff File

MantisBT: master bcf56408

2025-03-06 06:47

dregad


Details Diff
Localize 'Debug Log' string

Fixes 0035551
Affected Issues
0035551
mod - lang/strings_english.txt Diff File

MantisBT: master 043229c3

2025-03-06 10:14

raspopov

Committer: dregad


Details Diff
Make Debug Log section collapsible

Fixes 0035551

Co-authored-by Damien Regad <dregad@mantisbt.org>
Affected Issues
0035551
mod - core/logging_api.php Diff File

MantisBT: master c7067342

2025-03-07 08:04

raspopov

Committer: dregad


Details Diff
Add Debug Log event counter indicator

Fixes 0035551

Co-authored-by Damien Regad <dregad@mantisbt.org>
Affected Issues
0035551
mod - core/logging_api.php Diff File

MantisBT: master 785c169a

2025-03-09 12:53

dregad


Details Diff
Add missing 'debuglog' id

Fixes 0035551
Affected Issues
0035551
mod - core/logging_api.php Diff File

MantisBT: master 0b267b4c

2025-03-09 13:04

dregad


Details Diff
Print message when debug log is empty

Fixes 0035551
Affected Issues
0035551
mod - core/logging_api.php Diff File
mod - lang/strings_english.txt Diff File