Gathering detailed insights and metrics for @emartech/key-value-to-json-log
Gathering detailed insights and metrics for @emartech/key-value-to-json-log
npm install @emartech/key-value-to-json-log
Typescript
Module System
Min. Node Version
Node Version
NPM Version
66.8
Supply Chain
85.7
Quality
82.7
Maintenance
100
Vulnerability
99.3
License
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
13,695
Last Day
3
Last Week
35
Last Month
99
Last Year
882
54 Commits
1 Forks
10 Watching
1 Branches
15 Contributors
Latest Version
2.2.0
Package Id
@emartech/key-value-to-json-log@2.2.0
Size
3.32 kB
NPM Version
7.20.3
Node Version
16.6.1
Publised On
11 Aug 2021
Cumulative downloads
Total Downloads
Last day
200%
3
Compared to previous day
Last week
600%
35
Compared to previous week
Last month
39.4%
99
Compared to previous month
Last year
-59.6%
882
Compared to previous year
5
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.
1npm install @emartech/key-value-to-json-log
or you can use it through npx
1npx -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.
1node 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
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
11 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More