
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@emartech/key-value-to-json-log
Advanced tools
This tool is written to convert all logs generated by [logentries-logformat](https://www.npmjs.com/package/logentries-logformat) in a process to be able to use and log with [@emartech/json-logger](https://www.npmjs.com/package/@emartech/json-logger).
This tool is written to convert all logs generated by logentries-logformat in a process to be able to use and log with @emartech/json-logger.
npm install @emartech/key-value-to-json-log
or you can use it through npx
npx -p @emartech/key-value-to-json-log -c '<YOUR_PROCESS_TO_LOG> | key-value-to-json-log'
Command Line
Just pipe your process into the key-value-to-json-log
bin.
node server/process/web | key-value-to-json-log
And now all incoming logs will be converted and output to process.stdout
(or where @emartech/json-logger is logging).
During the transformation the following rules are applied. Please refine your alerts!
The namespace (type
) will be logged as name
, as the event's name (event
) will be action
.
The level of your log (previously result
) is converted to a log level (level
) by @emartech/json-logger. key-value-to-json-log
uses the following mapping:
debug (20)
success
will be info (30)
error
will be error (50)
Even if the log message has a timestamp in it, it will be truncated and @emartech/json-logger will add its own time
.
All log keys will be converted to snake_case.
key-value-to-json-log
detects if an Error had been logged and will transform the incoming name
, message
, code
and stack
keys by prefixing with error_
as it would be done by @emartech/json-logger if you would log an Error with logger.fromError()
.
All incoming number values will be converted to float
/int
in the JSON output.
May be freely distributed under the MIT license.
Copyright (c) 2018 Emarsys Technologies Ltd. and other contributors
FAQs
This tool is written to convert all logs generated by [logentries-logformat](https://www.npmjs.com/package/logentries-logformat) in a process to be able to use and log with [@emartech/json-logger](https://www.npmjs.com/package/@emartech/json-logger).
We found that @emartech/key-value-to-json-log demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 130 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.