
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
aurelia-logging-color
Advanced tools
ColorAppender
for aurelia-logging
and @unional/logging
.
Logging is a great tool. But it is also heavily underutilized. One major reason is that when we log a lot of stuff, we can quickly get overwhelmed by all those information.
aurelia-logging
allows you to create different loggers for different part of your application, as fine grain as you wanted.
However, it still does not solve the issue above.
Coloring the log message helps you to pick the relevant information much easier.
import { addAppender, setLevel, getLogger, logLevel } from 'aurelia-logging' // or '@unional/logging'
import { ColorAppender } from 'aurelia-logging-color'
addAppender(new ColorAppender())
// turn on logging (this example do it globally)
setLevel(logLevel.info)
const loggerA = getLogger('Logger A')
loggerA.warn('Pretty Color')
const loggerB = getLogger('Logger B')
loggerB.info('Nother pretty color!')
Gives you:
Note that on windows 8 or below the constructor option is not in effect because there are not many color available.
FAQs
ColorAppender for `aurelia-logging`
The npm package aurelia-logging-color receives a total of 178 weekly downloads. As such, aurelia-logging-color popularity was classified as not popular.
We found that aurelia-logging-color demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.