Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@gauntface/logger
Advanced tools
`@gauntface/logger` is a simple library aimed at making it easy to add colored and prefixed logs to a project in both Node and the browser.
<script src="https://unpkg.com/@gauntface/logger@3.0.1/build/browser-globals.js"></script>
<script>
// Use the default logger
gauntface.logger.debug(`Hello, World!`);
// Customize the default loggers prefix
gauntface.logger.setPrefix(`GitHub README Demo`);
gauntface.logger.log(`*wave*`);
// Create your own logger instances
const simpleLogger = new gauntface.Logger();
simpleLogger.warn(`Logger supports warn()...`);
simpleLogger.error(`...and error()`);
// Use your own prefix for some or all of the log
// levels
const complexLogger = new gauntface.Logger({
prefix: {
[gauntface.LogLevels.GROUP]: 'My App',
[gauntface.LogLevels.ERROR]: '👻',
},
});
complexLogger.log('The logger lib also supports groups');
complexLogger.group(`Like this one`);
complexLogger.log(`I'm nested`);
complexLogger.groupCollapsed(`You can collapse them too`);
complexLogger.error(`Boo`);
complexLogger.groupEnd();
complexLogger.groupEnd();
</script>
const {Logger} = require('@hopin/logger');
const example1Logger = new Logger({
prefix: 'Example 1',
});
const example2Logger = new Logger({
prefix: 'Example 2',
});
example1Logger.debug('Hello Logger 2 *waves*');
example2Logger.log('Oh Hai!');
FAQs
A simple console abstraction with some little extras
The npm package @gauntface/logger receives a total of 213 weekly downloads. As such, @gauntface/logger popularity was classified as not popular.
We found that @gauntface/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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.