When the mongodb4 appender was created for log4j2, the ability to specify a
factory class/method in the log4j2.xml file was removed, and the
configuration option was instead reverted to requiring a simple connection
string.

Was there a technical reason why that needed to happen, or was it just for
simplicity at dev time?

I've been relying on the factory approach, as the database credentials are
not known until run-time in my use-case. I was also looking forward to
having a mongodb4 version to upgrade to, but as it stands now this is
unfortunately not giving me what I need.

Thanks!

Julian Woodward

PS New to this forum, so please be forgiving of any breaches of etiquette!

Reply via email to