Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
node-ez-logger
Advanced tools
Readme
Simple logging module for node.js
This module is writing log messages to the console and to files in the log folder.
Install the package with NPM
npm install node-ez-logger
In your script file include the module
const logger = require('node-ez-logger');
In your code you can log with info(), warning(), error() or debug() methods
logger.info('info message in the log');
logger.warning('warning message in the log');
logger.error('error message in the log');
logger.debug('debug message in the log');
You have the possibility to change the path, where the file will be placed, and the format of the date in the logfiles and in the console.
logger.config.dateFormat(format: string): void
The timestamp will be written in this format to the console and the logfile. The date format will be parsed by the [node-date-parser](https://www.npmjs.com/package/node-date-parser) module. Default value is: ``Y-m-d H:i:s,V``
logger.config.dateFormat('Y-m-d H:i:s,V');
logger.config.logPath(path: string): void
You can specify a different logging path if you need to. By default the files will be created in the logs folder in the same directory where your main file is running.
> Note: You only have to provide a path! If this path doesn't exist, the script will create it for you.logger.config.logPath('custompath/logs');
FAQs
Simple logger module for node.js
The npm package node-ez-logger receives a total of 0 weekly downloads. As such, node-ez-logger popularity was classified as not popular.
We found that node-ez-logger 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.