
Security News
GitHub Actions Supply Chain Attack Puts Thousands of Projects at Risk
A compromised GitHub Action exposed secrets in CI/CD logs, putting thousands of projects at risk and forcing developers to urgently secure their workflows.
loglevel-timestamp
Advanced tools
Prepends a timestamp to your loglevel messages with some extra :sparkle:
Prepends a timestamp to your loglevel messages with some extra ✨.
This can be used in node or in browser (see browser support).
prefixer(log, {
shouldLevel: true,
prefixStart: '[',
prefixEnd: ']'
});
log.info('App started');
// [ 2016-08-19T17:31:00.230Z INFO ] App started
shouldTimestamp
Boolean
- Default: true
Use this to control if timestamp appears.
shouldLevel
'Boolean' - Default: 'false'
Use this to define if log level should be displayed.
Example:
2016-08-19T17:31:00.230Z INFO App started
prefixStart
String
- Default: none
This gets appended before the prefix.
prefixEnd
String
- Default: none
This gets appended after the prefix.
prefixes
Array
- Default: none
This are items that are displayed after the timestamp and log level. You can use functions here.
This will not work in IE <=9!
FAQs
Prepends a timestamp to your loglevel messages with some extra :sparkle:
The npm package loglevel-timestamp receives a total of 971 weekly downloads. As such, loglevel-timestamp popularity was classified as not popular.
We found that loglevel-timestamp 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 compromised GitHub Action exposed secrets in CI/CD logs, putting thousands of projects at risk and forcing developers to urgently secure their workflows.
Research
Security News
A malicious Maven package typosquatting a popular library is secretly stealing OAuth credentials on the 15th of each month, putting Java developers at risk.
Security News
Socket and Seal Security collaborate to fix a critical npm overrides bug, resolving a three-year security issue in the JavaScript ecosystem's most popular package manager.