mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
Fixes #1086
This commit is contained in:
parent
163c7a1eeb
commit
8b44299454
@ -39,7 +39,7 @@ const tryLoading = (modulePath, config) => {
|
||||
const loadAppenderModule = (type, config) => coreAppenders.get(type)
|
||||
|| tryLoading(`./${type}`, config)
|
||||
|| tryLoading(type, config)
|
||||
|| (require.main && tryLoading(path.join(path.dirname(require.main.filename), type), config))
|
||||
|| (require.main && require.main.filename && tryLoading(path.join(path.dirname(require.main.filename), type), config))
|
||||
|| tryLoading(path.join(process.cwd(), type), config);
|
||||
|
||||
const appendersLoading = new Set();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user