Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
A simplistic logger supporting any Writable stream and custom formats.
npm i apheleia
Creates a new Logger instance with a single transport.
const { createLogger, SimpleFormat } = require('apheleia')
const fs = require('fs')
const logger = createLogger({
stream: fs.createWriteStream(__dirname + '/app.log'),
format: new SimpleFormat()
})
logger.info('hello world')
A Writable stream. If undefined a ConsoleTransport
will be used.
A format. Defaults to a instance of SimpleFormat
.
Formats must implement the following interface:
interface Format {
transform (level: string, message: string, args: any[], meta: object | undefined)
}
The levels used by the logger.
Sets the log level of the logger.
Allows to set the transport of the logger.
Ends the logger by calling end()
on every transport and then calls the callback
.
Writes a TRACE
level log, if allowed by the level
option.
Writes a DEBUG
level log, if allowed by the level
option.
Writes a INFO
level log, if allowed by the level
option.
Writes a WARN
level log, if allowed by the level
option.
Writes a ERROR
level log, if allowed by the level
option.
Writes a FATAL
level log, if allowed by the level
option.
Creates a new Transport instance.
new Transport({
stream: process.stdout,
format: new SimpleFormat()
}
A format used to stringify the parameters passed to the loggers methods.
Sets the log level of the logger.
A format used to stringify the parameters passed to the loggers methods.
FAQs
fast and simplistic logger.
The npm package apheleia receives a total of 5 weekly downloads. As such, apheleia popularity was classified as not popular.
We found that apheleia 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.