Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@nephelaiio/logger
Advanced tools
Custom log utilities built on top of Winston for Node.js.
Install the package using npm:
npm install @nephelaiio/logger
First, initialize the logger by specifying the logging level and optionally some initial messages.
import { init } from "@nephelaiio/logger";
init(level, "info");
You can log messages at different levels using the utility methods.
import { debug, info, warn, error } from "@nephelaiio/logger";
debug("This is a debug message.");
info("This is an informational message.");
warn("This is a warning.");
error("This is an error.");
init(level: LogLevels, messages?: Messages, transports?: Transport[])
: Initialize logger.setInfo(msgs?: Messages)
: Set logging level to 'info'.setVerbose(msgs?: Messages)
: Set logging level to 'debug'.setWarn(msgs?: Messages)
: Set logging level to 'warn'.setQuiet(msgs?: Messages)
: Set logging level to 'error'.debug(message: string)
: Log a debug message.info(message: string)
: Log an informational message.warn(message: string)
: Log a warning message.error(message: string)
: Log an error message.We welcome contributions! See CONTRIBUTING.md for details.
This project is licensed under the MIT License - see the LICENSE.md file for details.
Please feel free to submit issues and enhancement requests here.
FAQs
Custom log utilities
The npm package @nephelaiio/logger receives a total of 0 weekly downloads. As such, @nephelaiio/logger popularity was classified as not popular.
We found that @nephelaiio/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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.