Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
easy-logger-2
Advanced tools
Wrapper for your logger to do the heavy lifting, so that all you do is write logs just like a simple print-line.
You can install the Logger package from npm using the following command:
npm install easy-logger-2
Out of box, the package provides winston logger, with a flavouring on top. You will need to ensure some env properties to be set for this to work exactly as you need. It will still work when you don't set the env properties right, but with default values.
#####
##### LOG_LEVEL can be changed as per environment, like error,debug,info etc.
#####
## LOGGER PROPS { error -> info -> debug } --rtdf = file rotation date format --maxfilesize in mb
LOG_LEVEL = debug
LOG_LIFE_DAYS = 15
LOG_MAX_FSIZE = 5
LOG_FILE_RTDF = YYYYMMDD
DATE_FORMAT = YYYY-MM-DD HH:mm:ss
FILE_API_LOG = helloworld-api.log
FILE_APP_LOG = helloworld-app.log
const logger = require('easy-logger-2');
logger.warn(`Warning Message`);
logger.error('Error Message`);
logger.debug(`Debug Message`);
logger.info(`Info Message`);
This package will help you streamline API logs across your application.
FAQs
A wrapper on top of winston with log rotation capabilities
The npm package easy-logger-2 receives a total of 1 weekly downloads. As such, easy-logger-2 popularity was classified as not popular.
We found that easy-logger-2 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.