Installations
npm install log4js-extend
Score
74.8
Supply Chain
80.8
Quality
75.3
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Developer
ww24
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
4.8.4
NPM Version
2.15.11
Statistics
28 Stars
19 Commits
9 Forks
4 Watching
1 Branches
2 Contributors
Updated on 30 May 2023
Bundle Size
1.12 kB
Minified
579.00 B
Minified + Gzipped
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
706,517
Last day
-20.6%
335
Compared to previous day
Last week
-20.3%
1,862
Compared to previous week
Last month
16.7%
8,686
Compared to previous month
Last year
-10.9%
101,446
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
log4js-node-extend
It add useful meta data of code (file-name, function-name line-number, column-number) for log4js-node
.
Example
[2014-02-18 12:24:14.238] [INFO] category - test at <anonymous> (test.js:57:9)
Installation
npm install log4js-extend
Usage
1const log4js = require("log4js"); 2const log4js_extend = require("log4js-extend"); 3 4log4js_extend(log4js, { 5 path: __dirname, 6 format: "at @name (@file:@line:@column)" 7}); 8 9const logger = log4js.getLogger("category"); 10logger.info("test");
Options
path
Use relative path from path directory.
default: null
format
Simple log format.
default: "at @name (@file:@line:@column)"
Keywords will replace as below.
- @name : function name
- @file : file name
- @line : line number
- @column : column number
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0
Reason
Found 1/8 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 16 are checked with a SAST tool
Score
3.6
/10
Last Scanned on 2024-11-18
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