Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Readme
Bock is a strong
lagerlogger ofGermanUS origin
$ npm install --save bock
const options = { appName: 'myAwesomeApp', logLevel: 'warn', toFile: true }
const bock = require('bock')(options)
bock.fatal(new Error('something went wrong'))
Bock exports a primary function which returns an instance with methods
(debug
, info
, warn
, fatal
, setLogLevel
, close
)
${appName}-${month}-${day}-${year}.json
)__dirname + '/logs'
) Path for log filestrue
) Use newline delimited JSON (highly recommended for performance reasons)Promise
indicating the log was writtenEach of the four methods (debug
, info
, warn
, fatal
) accept an Error
object, a string, or a function that returns one of those two things. They also
accept a second argument (transform
) which is a function that will accept as
its only argument the final text output to file and/or console, and what it
returns will the text value to be logged. This is primarily useful for
cleansing sensitive information from the output.
Where const logger = bock([opts])
(i.e. on an instance) the following methods
are also available
logger.setLogLevel(string logLevel)
Changes logLevel setting on instance
logger.close()
Close forked process used for file writing
Additionally, you can choose to use the bock.cached([opts])
which will return
the last instance instantiated using the cached
method or create a new one
with the passed opts (and cache it).
MIT © Andrew Carpenter
FAQs
Bock is a strong lager (logger) of German (US) origin
The npm package bock receives a total of 8 weekly downloads. As such, bock popularity was classified as not popular.
We found that bock 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.