
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
Simple logger designed for browser and node. It logs with line number and color.
Simple logger designed for browser and terminal.
Use npm to install.
npm install --save log-talk
const LogTalk = require('log-talk');
const logger = new LogTalk();
// Default methods
logger.debug('This is debug');
logger.info('This is info', { message: 'Hello' });
logger.success('This is success');
logger.warn('This is warn');
logger.error('This is error', new Error('There is something wrong'));
// Define your own method
logger.setMethod({ name: 'foo', color: 'yellow', timeFormat: '[[]YYYY-MM-DD HH:mm:ss]' });
logger.foo('Foo');
// Override default methods
logger.setMethod({ name: 'info', color: 'red' });
logger.info('Now the label is red');
You can see this demo here on your browser.

You can hide low level log such as debug.
const LogTalk = require('log-talk');
const minLevel = 3;
const logger = new LogTalk(minLevel);
Set label option to customize label.
If you don't set label, name option is used as label.
const LogTalk = require('log-talk');
const logger = new LogTalk();
logger.setMethod({ name: 'foo', label: 'Foo' });
Set timeFormat option to customize time format.
const LogTalk = require('log-talk');
const logger = new LogTalk();
logger.setMethod({ name: 'foo', timeFormat: 'YYYY-MM-DD' });
It depends on Day.js to generate time string.
Formatting rules are here.
Set color option to highlight.
NOTE: IE ignores color.
const LogTalk = require('log-talk');
const logger = new LogTalk();
logger.setMethod({ name: 'foo', color: 'yellow' });
These are defined colors.
It's not flexible and few though.
I will improve it soon.
| name | level | color |
|---|---|---|
| debug | 1 | default |
| info | 2 | blue |
| success | 3 | green |
| warn | 4 | yellow |
| error | 5 | red |
FAQs
Simple logger designed for browser and node. It logs with line number and color.
We found that log-talk 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.