MCPcopy Index your code
hub / github.com/log4js-node/log4js-node / loadConfigurationFile

Function loadConfigurationFile

lib/log4js.js:47–57  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

45}
46
47function loadConfigurationFile(filename) {
48 debug(`Loading configuration from ${filename}`);
49 try {
50 return JSON.parse(fs.readFileSync(filename, 'utf8'));
51 } catch (e) {
52 throw new Error(
53 `Problem reading config from file "${filename}". Error was ${e.message}`,
54 e
55 );
56 }
57}
58
59function configure(configurationFileOrObject) {
60 if (enabled) {

Callers 1

configureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected