
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
easy-c-loggr
Advanced tools
An easy-to-use tool to create beautiful and consistant console logs within seconds.
npm install easy-c-loggr
const Logger = require('easy-c-loggr').default;
const logger = new Logger({ formattedDate: true, formatLanguage: 'EN' });
/*
* new Logger({ TIMESTAMP_IS_FORMATTED, FORMAT_LANGUAGE })
* by default, timestamp formation is disabled, with 'true' you enable it and can choose the language
* currently available languages: EN, DE
*/
import Logger from 'easy-c-loggr';
const logger = new Logger({ formattedDate: true, formatLanguage: 'EN' });
/*
* new Logger(TIMESTAMP_IS_FORMATTED, FORMAT_LANGUAGE)
* by default, timestamp formation is disabled, with 'true' you enable it and can choose the language
* currently available languages: EN, DE
*/
logger.error('Error message'); // Red error message
logger.hint('Hint message'); // Blue hint message
logger.log('Log message'); // White log message
logger.success('Success message'); // Green success message
logger.warn('Warn message'); // Yellow warn message
logger.setPrefixes({ error: 'ERROR:', log: 'LOG:', hint: 'HINT:', success: 'OK', warn: 'WARN:' });
/*
* The setPrefixes method sets prefixes for the default functions that get added before EVERY log message.
*/
logger.error('404 Not found'); // Console output: [Timestamp] ERROR: 404 Not found
FAQs
An easy-to-use package to create beautiful console logs within seconds.
The npm package easy-c-loggr receives a total of 6 weekly downloads. As such, easy-c-loggr popularity was classified as not popular.
We found that easy-c-loggr 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.