# Color-coded Debugger entries

**URL:** <https://discourse.nodered.org/t/color-coded-debugger-entries/21274>\
**Category:** General\
**Created:** [4 February 2020 16:39 UTC](https://discourse.nodered.org/t/color-coded-debugger-entries/21274 "2020-02-04T16:39:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![neil.lindberg](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@neil.lindberg](https://discourse.nodered.org/u/neil.lindberg)\
**Post date:** [4 February 2020 16:39 UTC](https://discourse.nodered.org/t/color-coded-debugger-entries/21274/1 "2020-02-04T16:39:12Z")

</div>

I'd like to color code debug levels and/or put a flag to say, "My color."

Scenario: QA guy is hitting NodeRED app while I'm trying to squash bugs reported by QA guy. However, in my testing I'm attempting to watch while the debug log explodes and I find myself scrolling through way too many entries to find the ones I need in my debugging activities.

What I can imagine is: Custom debug levels (kinda like winston) with their own set of colors. Then, I could, `node.my_level(some debug message)`. That would work great.  
It would make sense to me to simply make the existing levels render in different colors as a first step:

It seems there is a visual distinction between "warn" and "error", so I need to find that and figure out how to add me own style.  
`node.warn` = yellow side nub  
`node.error` = red side nub.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/2/324330080346f02252b8bd656137facba87dfb0f.png)  
-then-  
_It should allow a user to add a custom debugging level._  
`node.neil` = rainbow striped gradient background

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [4 February 2020 17:30 UTC](https://discourse.nodered.org/t/color-coded-debugger-entries/21274/2 "2020-02-04T17:30:40Z")

</div>

Take a look at the topic that got posted this morning related to the debugger window

> [@clipboard Survey: logging to debug sidebar](https://discourse.nodered.org/t/survey-logging-to-debug-sidebar/21253):
>
> Hi, one of the long-standing quirks of the Function node is that the only way to get a message to appear in the Debug sidebar is to use node.warn or node.error. The problem with this approach is it puts what should be debugging comments into the log at warn/error levels. That is not a good thing for systems that monitor warn/error levels and automatically raise alerts when they happen. The question is: how can we improve this? It isn't a hard problem to solve, but there are a few different wa…

---

<div class="post-metadata">

**Author:** ![neil.lindberg](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@neil.lindberg](https://discourse.nodered.org/u/neil.lindberg)\
**Post date:** [4 February 2020 19:06 UTC](https://discourse.nodered.org/t/color-coded-debugger-entries/21274/3 "2020-02-04T19:06:02Z")

</div>

Thanks! @afelix

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [5 March 2020 19:06 UTC](https://discourse.nodered.org/t/color-coded-debugger-entries/21274/4 "2020-03-05T19:06:08Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
