Allow expansion of grouped-together repeating log messages

NEW
Unassigned

Status

enhancement
P3
normal
8 years ago
2 months ago

People

(Reporter: ori, Unassigned)

Tracking

Trunk
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [lang=js][good next bug])

Reporter

Description

8 years ago
When a log message repeats itself, the new messages are grouped into one line, and a counter is incremented.
The grouped line has the timestamp of the first message and does not change with subsequent ones.

There should be an option to expand such messages, in order to see their individual timestamps.

Also, I'm not sure if the grouped line should show the first or last timestamp - maybe it's worth discussing.
Thanks for the bug report!

(In reply to Ori Avtalion (salty-horse) from comment #0)
> When a log message repeats itself, the new messages are grouped into one
> line, and a counter is incremented.
> The grouped line has the timestamp of the first message and does not change
> with subsequent ones.
> 
> There should be an option to expand such messages, in order to see their
> individual timestamps.

That would be nice. We could alternatively include a preference to collapse the logging messages or not as a simpler solution. Having an expandable list of repeats with timestamps would be nice though.

This also suggests the possibility to just show the list of timestamps on the next line.

> Also, I'm not sure if the grouped line should show the first or last
> timestamp - maybe it's worth discussing.

yeah, I can think of cases where I might want the first occurrence or the final message.
Priority: -- → P3
A hacker news user suggested we can add an about:config pref to turn off grouping. This would be easy to do.
Whiteboard: [mentor=msucan][lang=js]

Updated

5 years ago
Whiteboard: [mentor=msucan][lang=js] → [mentor=msucan][lang=js][good next bug]
Mentor: mihai.sucan
Whiteboard: [mentor=msucan][lang=js][good next bug] → [lang=js][good next bug]

Comment 3

5 years ago
Hi, I'm very interested in contributing to the firefox DevTools and start with this bug.
What is the solution that we want to solve this and how should I start.

Thank you in advance.
Hi, Nicholas - 

Thanks for your interest. This isn't a great starter bug; it looks like it would be a better fit for somebody who has some familiarity with the Devtools codebase already. 

A good place to get started is to take a look at

https://developer.mozilla.org/en-US/docs/Introduction

... to get your development environment spun up, and then find a good first bug to work on through Bugs Ahoy:

http://www.joshmatthews.net/bugsahoy/

Thanks.
As well, DevTools has a specific 'getting started' page on the Wiki for people interested in contributing:

https://wiki.mozilla.org/DevTools/GetInvolved

Included are a list of potential 'first' and 'mentored' bugs.
Reporter

Comment 6

5 years ago
Nicholas, here are my ideas as initial steps towards a useful behavior:

1) A setting that lets you control whether log messages should be grouped together or not.

(If you're looking for it, there's already a Developer Tools Web Console setting for "Enable timestamps".)

2) The counter that shows how many messages were repeated can be clicked to expand them all. I'm not sure if it should disappear at this point, or allow you to group them together again.
Hi,
I want to work on this bug. Can someone mentor me?
Mentor: mihai.sucan
No longer blocks: 1088793

Updated

11 months ago
Product: Firefox → DevTools
Type: defect → enhancement
You need to log in before you can comment on or make changes to this bug.