
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@empathyco/x-logger
Advanced tools
This project is a simple logger
To install the logger:
# or pnpm or yarn
npm install @empathyco/x-logger --save-dev
import { logger, LogLevel } from '@empathyco/x-logger';
There are different log levels to be set in the console level and server level.
enum LogLevel {
silent = 0,
error = 1,
warn = 2,
info = 3,
debug = 4,
trace = 5
}
And different methods to be called to use the logger:
logger.error()
logger.warn()
logger.info()
logger.debug()
logger.trace()
Depending on the LogLevel, only some levels will be displayed in the console. Setting the LogLevel
to warn
, the console will display the levels below it and itself, in this case, error
and
warn
.
logger.consoleLevel = LogLevel.warn;
logger.serverLevel = LogLevel.silent;
logger.error() // console.error called
logger.warn() // console.warn called
logger.info() // console.info not called
logger.debug() // console.debug not called
logger.trace() // console.trace not called
FAQs
Empathy simple logger
The npm package @empathyco/x-logger receives a total of 530 weekly downloads. As such, @empathyco/x-logger popularity was classified as not popular.
We found that @empathyco/x-logger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.