You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have one logger initialised with a file appender in default category. I need to add a new logger category with different file appender in same code base for different module.
but when I tried configuring new category, I have to pass default appender.
is there a way to fetch the default configuration from the logger or any way to add new category with different file appender.
The text was updated successfully, but these errors were encountered:
At the moment, I don't think there is a way to fetch the configurations. While I can possibly cache the passed-in configuration and return that, it would not reflect any programmatical changes (via Logger) as they don't go through the same flow.
For a quick solution, I would recommend caching your configuration, amending it and calling log4js.configure() every time you want it to get updated. Would that suffice?
I have one logger initialised with a file appender in default category. I need to add a new logger category with different file appender in same code base for different module.
but when I tried configuring new category, I have to pass default appender.
is there a way to fetch the default configuration from the logger or any way to add new category with different file appender.
The text was updated successfully, but these errors were encountered: