-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds log4js. Updates wait for port attempts.
- Loading branch information
1 parent
c021c69
commit ce123c2
Showing
10 changed files
with
137 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"appenders": { | ||
"console": { | ||
"type": "console" | ||
} | ||
}, | ||
"categories": { | ||
"default": { | ||
"appenders": ["console"], | ||
"level": "info" | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const log4js = require('log4js'); | ||
const logLevel = process.env.LOG_LEVEL || 'info'; | ||
|
||
log4js.configure({ | ||
appenders: { console: { type: 'console' } }, | ||
categories: { default: { appenders: ['console'], level: logLevel } } | ||
}); | ||
|
||
let logger = null; | ||
|
||
const getLogger = () => { | ||
if(!logger) { | ||
logger = log4js.getLogger(); | ||
} | ||
return logger; | ||
}; | ||
|
||
module.exports = { | ||
getLogger | ||
}; | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,10 @@ | |
"test": "mocha --timeout 600000", | ||
"test-fail-fast": "mocha -b --timeout 600000", | ||
"run-tests-multiple-times": "node multipleTestExecutionsRunner.js", | ||
"run-single-test-file": "node singleTestFileRunner.js" | ||
"run-single-test-file": "node singleTestFileRunner.js", | ||
"test-fail-fast:info": "LOG_LEVEL=info mocha -b --timeout 600000", | ||
"test-fail-fast:debug": "LOG_LEVEL=debug mocha -b --timeout 600000", | ||
"test-fail-fast:trace": "LOG_LEVEL=trace mocha -b --timeout 600000" | ||
}, | ||
"author": "", | ||
"license": "GPL3", | ||
|
@@ -30,6 +33,7 @@ | |
"fs-extra": "^4.0.2", | ||
"glob": "^7.1.2", | ||
"lodash": "^4.17.5", | ||
"log4js": "^6.9.1", | ||
"mocha": "^10.1.0", | ||
"mocha-junit-reporter": "^1.17.0", | ||
"pegin-address-verificator": "git+https://[email protected]/rsksmart/pegin-address-verifier#v0.4.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters