
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
pear-logger
Advanced tools
Pear logger
import Logger from 'pear-logger'
const Logger = require('pear-logger')
const logger = new Logger([options])Options:
labels string comma-separated label allowlistfields string comma-separated: date,time,level,label,deltah: to hide (e.g. h:label)stacks boolean include stack traceslevel number|string one of 0..3 | 'OFF'|'ERR'|'INF'|'TRC'|'ERROR'|'INFO'|'TRACE'pretty boolean hint to hide redundant fields in non-verbose, non-maxlogger.OFF booleanTrue if log level is 0 (OFF)
logger.ERR booleanTrue if log level is 1 (ERR)
logger.INF booleanTrue if log level is 2 (INF) (default)
logger.TRC booleanTrue if log level is 3 (TRC)
logger.error(label, ...args)Logs when level >= ERR and label is allowed
logger.info(label, ...args)Logs when level >= INF and label is allowed
logger.trace(label, ...args)Logs when level >= TRC and label is allowed
logger.format(level, label, ...args) -> string | ''Returns a formatted string; respects thresholds, labels, fields, stacks, and TTY color support.
Logger.switchesDefaults from pear top-level flags:
--log - log--log-level - logLevel--log-labels - logLabels--log-fields - logFields--log-stacks - logStacks--log-verbose - logVerbose--log-max - logMaxSee pear -h for flag descriptions.
Logger.OFF = 0 | Logger[0] === 'OFF'Logger.ERR = 1 | Logger[1] === 'ERR'Logger.INF = 2 | Logger[2] === 'INF'Logger.TRC = 3 | Logger[3] === 'TRC'Apache-2.0
FAQs
Pear logger
The npm package pear-logger receives a total of 484 weekly downloads. As such, pear-logger popularity was classified as not popular.
We found that pear-logger demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.