Can you explain me this behaviour? Map<String, Appender> appenders = config.getAppenders(); appenders.clear(); *** WORKING ***
Map<String, LoggerConfig> loggers = config.getLoggers(); loggers.clear(); *** GOES IN EXCEPTION DOESN'T WORK!! On 2020/03/25 14:41:30, EDMONDO SENA <[email protected]> wrote: > In order to disable local logging when the external logging is enabled. > So, remove all local appenders and disable local logging for re-enabling the > delivery towards another system to run-time. > > > On 2020/03/25 14:29:26, Doug Wegscheid <[email protected]> wrote: > > upon examination, I see that clearAppenders() is not public, so that won't > > work. > > There is probably a way to do what you want, if you can tell us why you > > need to clear the appenders. > > > > On Wednesday, March 25, 2020, 10:23:38 AM EDT, EDMONDO SENA > > <[email protected]> wrote: > > > > > > Can you explain me how can i do it? > > > > Regards. > > > > > > > > > > On 2020/03/25 14:18:03, Doug Wegscheid <[email protected]> wrote: > > > you are trying to clear the list of appenderRefs. Are you trying to call > > >clearAppenders() instead of clear()? > > > > > > On Wednesday, March 25, 2020, 10:03:27 AM EDT, EDMONDO SENA > > ><[email protected]> wrote: > > > > > > > > > Why this instruction goes in UnsupportedOperationException? > > > > > > List<AppenderRef> value = loggerConfig.getAppenderRefs(); > > > value.clear(); > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [email protected] > > > For additional commands, e-mail: [email protected] > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
