configuration file log4js.json does not contain a valid configuration
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 62/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript, node.js
- Domain
- backend
Research direction
Inspect config/log4js.json and compare it with the valid configuration example in the issue. Update the sample so log4js can load it without the reported TypeError, then verify that the example application accepts the configuration.
Written by the indexing model from the issue text.
Description
When using the sample configuration file config/log4js.json log4js is unable to load this configuration:
"appenderList.forEach is not a function" (TypeError: appenderList.forEach is not a function
at configureAppenders (node_modules\log4js\lib\log4js.js:248:18)
at configureOnceOff (node_modules\log4js\lib\log4js.js:308:7)
at Object.configure (node_modules\log4js\lib\log4js.js:371:3)
A valid configuration file looks more like this:
{
"appenders": [
{
"type": "dateFile",
"filename": "log/access.log",
"pattern": "-yyyy-MM-dd",
"category": "http"
},
{
"type": "file",
"filename": "log/app.log",
"maxLogSize": 10485760,
"numBackups": 3
}
]
}
- Dominant language
- JavaScript
- Stars
- 141
- Forks
- 112
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from log4js-node/log4js-example
-
log4js-node/log4js-example#6 · 7 reactions · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
log4js-node/log4js-example#3 · 2 comments · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
All issues in log4js-node/log4js-example
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·