
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@comodinx/logger
Advanced tools
@comodinx/logger is a Node.js logger helper based on winston.
npm install @comodinx/logger
$ git clone https://gitlab.com/comodinx/logger.git
$ cd logger
$ npm install
| Environment variable | Values | Type | Default value |
|---|---|---|---|
| LOGGER_ENABLED | true/false | boolean | true |
| LOGGER_SILENT | true/false | boolean | false |
| LOGGER_LEVEL | http,info,warn or error | string | http |
| LOGGER_FORMAT | simple,json or combine | string | combine |
| LOGGER_TRANSPORTS | console, | string list (,) | console |
| file, | |||
| file:<filepath>:<log level>, | |||
| stream:<filepath>, | |||
| http:<host>:<port>:<path>:<auth>:<ssl> |
Examples,
LOGGER_TRANSPORTS=console,file:.access.log,file:.errors.log:error
const logger = require('@comodinx/logger');
logger.error(new Error('Not Found')); // [2020-01-28T17:16:50.379Z] - ERROR - ✘ Ooops... Error: Not Found
logger.error('This is an error'); // [2020-01-28T17:16:50.379Z] - ERROR - ✘ Ooops... This is an error
logger.warn('This is a warning'); // [2020-01-28T17:16:50.381Z] - WARN - ⚠ This is a warning
logger.info('Hello World!'); // [2020-01-28T17:16:50.381Z] - INFO - Hello World!
logger.title('Hello World!'); // [2020-01-28T17:16:50.382Z] - INFO - ========== Hello World! ==========
logger.success('Hello World!'); // [2020-01-28T17:16:50.383Z] - INFO - ✔ Hello World!
logger.arrow('Hello World!'); // [2020-01-28T17:16:50.384Z] - INFO - • Hello World!
logger.step('Hello World!'); // [2020-01-28T17:16:50.384Z] - INFO - ✦ Hello World!
logger.lap('Hello World!'); // [2020-01-28T17:16:50.384Z] - INFO - ➜ Hello World!
In order to see more concrete examples, I INVITE YOU TO LOOK AT THE TESTS :)
npm test
FAQs
Logger is a Node.js logger helper based on winston.
We found that @comodinx/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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.