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

Function configure

lib/log4js.js:59–80  ·  view source on GitHub ↗
(configurationFileOrObject)

Source from the content-addressed store, hash-verified

57}
58
59function configure(configurationFileOrObject) {
60 if (enabled) {
61 // eslint-disable-next-line no-use-before-define
62 shutdown();
63 }
64
65 let configObject = configurationFileOrObject;
66
67 if (typeof configObject === 'string') {
68 configObject = loadConfigurationFile(configurationFileOrObject);
69 }
70 debug(`Configuration is ${configObject}`);
71
72 configuration.configure(deepClone(configObject));
73
74 clustering.onMessage(sendLogEventToAppender);
75
76 enabled = true;
77
78 // eslint-disable-next-line no-use-before-define
79 return log4js;
80}
81
82function isConfigured() {
83 return enabled;

Callers 2

test.tsFile · 0.90
getLoggerFunction · 0.70

Calls 3

loadConfigurationFileFunction · 0.85
shutdownFunction · 0.70
configureMethod · 0.65

Tested by

no test coverage detected