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.
angie-log
Advanced tools
Readme
An extremely lightweight logging utility for NodeJS built in ES6
Angie Log is designed as an extremely lightweight logging utility for NodeJS which will:
npm i -g angie-log
import { default as Log } from 'angie-log';
// Call a new logger with defaults
let logger = new Log({
outfile: 'log.log', // Set the outfile
file: 'log.log', // Equivalent to `outfile`
name: 'test', // Set the name of the logger
timestamp: true, // Controls whether the logfile output has a timestamp
level: 'debug', // Sets a single log level
levels: [ 'info', 'debug' ], // Sets many available log levels
logLevel: 'debug', // Equivalent to `level`
logLevels: [ 'info', 'debug' ], // Equivalent to `levels`
silent: false // Controls whether the log instance should output into the terminal as well
}),
err = new Log('log.log', 'test', true, 'error', false);
// Call the loggers with the string "test"
logger.info('test');
err.error('test');
// $setOutfile to change the output file
log.$setOutfile(`${process.cwd()}/angie.log`);
// $setName to change the name of the logger and what is logged in the outfile
log.$setOutfile('test');
// $setTimestamp to toggle timestamps in the log output
log.$setTimestamp(true);
// $setLevel to change the log level
log.$setLevel(true);
// $setSilent to prevent terminal output
log.$setSilent(true);
// Explicitly call the prettified terminal output
Log.info('test');
Log.debug('test');
Log.warn('test');
Log.error('test');
Include the module in the same fashion as it is above, or wherever called modules are bound:
@Controller
class Test {
constructor($Log) {
$Log.info('The log module was included in a controller');
}
}
The functions available on the Angie Log module are equivalent in either context.
For a list of Frequently Asked Questions, please see the FAQ and the CHANGELOG for an up to date list of changes. Contributors to this Project are outlined in the CONTRIBUTORS file.
Please see the site for information about the project, a quickstart guide, and documentation and the CHANGELOG for an up to date list of changes.
FAQs
An extremely lightweight logging utility for NodeJS built in ES6
The npm package angie-log receives a total of 16 weekly downloads. As such, angie-log popularity was classified as not popular.
We found that angie-log 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.