
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@gloxy/unilog
Advanced tools
Log everywhere with unified title and symbol.
npm install @gloxy/unilog
or
yarn add @gloxy/unilog
import { Unilog } from '@gloxy/unilog';
const unilog = new Unilog('Play balls');
unilog.warn('Balls became worse', 3); // PRINT ⚠ Warn: Play balls. Balls become worse - 3
unilog.fail('Something wrong', { a: 1 }); // PRINT ✖ Fail: Play balls. Something wrong - { a: 1 }
import unilog from '@gloxy/unilog';
function playBalls() {
// Init log with a Title
unilog('Play balls');
try {
unilog.info('Children are happy'); // PRINT ℹ Info: Play balls. Children are happy
// Change title in midway temporarily (Will be consumed only once at next log action)
unilog.mid('Break balls').warn('Balls became worse', 3); // PRINT ⚠ Warn: Break balls. Balls become worse - 3
const sure = true;
unilog.succeed('Balls are back to the basket.', sure); // PRINT ✔ Succeed: Play balls. Balls are back to the basket. - true
} catch (error) {
unilog.fail('Something wrong', error); // PRINT ✖ Fail: Play balls. Something wrong - Error...
}
}
playBalls();
// Modify title permenantly
unilog('Finished');
unilog.info('All entertainments were closed'); // PRINT ℹ Info: Finished. All entertainments were closed
Create a unilog instance with or without title, which will be used as a unified title for log actions
.info(...data?), .succeed(...data?), .warn(...data?), .fail(...data?), .debug(...data?).
data: multiple printed data passed to log actions. Data Type: Any supported type.
Logs with a unified title and symbol will be printed in the console of Browser or Node. If wanna use different title temporarily for a log action, use method .mid to set a midwayTitle before the log action. The midwayTitle will be consumed only once, which means rest log actions will still use the initialized title.
.debugwon't print log ifprocess.env.NODE_ENV === 'production'.
Get the present unified title
Set the unified title
Get the midway title, which temporary for next log action.
Set the midway title, which temporary for next log action.
Shortcut to setMidewayTitle.
FAQs
Log everywhere with unified title and symbol.
The npm package @gloxy/unilog receives a total of 0 weekly downloads. As such, @gloxy/unilog popularity was classified as not popular.
We found that @gloxy/unilog 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.