Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
This is is yet another log4j-like logging framework for typescript. Base features:
Install it with npm install --save yalog4ts
.
First of all, in your app bootstrap, configure the logging system with
import { Loggerfactory, LoggerFactoryConfig } from 'yalog4ts';
[...]
Loggerfactory.init(
window: Window,
storage: Storage,
config: LoggerFactoryConfig)
In your code, grab a logger with
const logger = LoggerFactory.getLogger('aLoggerName')
and use it, e.g.
logger.info('this is some info message');
logger.info('this is some info message', someObject);
If enabled via configuration, yalog4ts registers some console features to set the level either globally or for certain loggers. Open the browser's developer tools, and enter lf.help
to get some help (however, the context lf
may be configured differently).
Basic features are:
lf.listloggers()
or its short equivalent lf.ll()
to list all registered loggers along with their log levelslf.setLogLevel(loggerIndexOrName, level)
or its short equivalent lf.sll()
to set the log level for specific loggers, e.g. lf.sll('loggerName', lf.DEBUG)
or lf.sll(1, lf.DEBUG)
(index determined using lf.ll()
)lf.level = lf.DEBUG
FAQs
A log4j-like logger for ts
The npm package yalog4ts receives a total of 2 weekly downloads. As such, yalog4ts popularity was classified as not popular.
We found that yalog4ts 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.