Can i choose a namespace color?
See original GitHub issueerror = require('debug')('app:error');
Can i make error to be exclusively red?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Can i choose a namespace color? · Issue #432 · debug-js/debug
It is just a different color of namespace, not a real console.error . What's more ,its color isn't red. How should I output...
Read more >Creating namespaces for named colors in Xcode - Peter Ringset
Our color names will now be main/green , main/purple , and main/red , which means that we can have multiple colors named red...
Read more >Visual Studio doesn't color out namespaces like it used to, is ...
You can go to "Tools->Options->Environment->Fonts and Colors" and see if "C++ Namespaces" is set to something other than the default.
Read more >Supporting multitenancy with isolated namespaces
Support multitenancy in Amazon QuickSight by implementing namespaces to isolate sets of groups and users.
Read more >What do you name color variables? | CSS-Tricks
It's a simple approach, but proxying implementation colors to our defined colors means we can change the implementation without breaking or ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Selecting the color itself is a bit wonky since you have to know the index in the array of the color that you want, but basically just set the
debugInstance.color
property of the instance to one of the values in thedebug.colors
Array. So for red you want index 5:@TooTallNate All the debug’s output is
console.info
(maybeconsole.log
), including errorvar error=debug('debug:error')
.It is just a different color of namespace, not a realconsole.error
. What’s more ,its color isn’t red.How should I output a debug different infomation of
info/log/warn/error
, which I can filter on chrome console. wheather they are on a same color. Or same background color, different text color to distinguishinfo/log/warn/error
. May be same feature with #514