I have a setup where I've configured a file appender on a logging config object, but I never added that file appender to any category.
When log4js loads the config, it then prints:
log4js.fileAppender - Writing to file /path/to/server.log, error happened [Error: EACCES: permission denied, open '/path/to/server.log'] {
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/var/opt/ericsson/cnom/log/eric-cnom-server.log'
}
Is this intentional? Or could the appenders avoid trying to open the file until they have actually been added to a category?
I have a setup where I've configured a file appender on a logging config object, but I never added that file appender to any category.
When log4js loads the config, it then prints:
Is this intentional? Or could the appenders avoid trying to open the file until they have actually been added to a category?