[MODULES-447] Make the ModuleLoggerFinder.activate() method public. A…
…lso, activate the ModuleLoggerFinder if a threshold is hit.
https://issues.redhat.com/browse/MODULES-447
Upstream #328
I've updated this and #328 to both just activate logging if the threshold is hit. I feel like for logging we need to activate, but I also understand it might make the log messages look weird. For example, the date will definitely not be that friendly. However, they are log messages and I don't think we can just discard them. We have to do something.
Another option might be to add the timestamp to the SimpleLogRecord and if not activated promptly, default activation would be writing to System.out in some formatted pattern.
can we merge this if it is what we wanted ? thanks
@dmlloyd @ropalka may I ask one of you to check this please ? thanks
We are not likely going to use this solution. Discussion is ongoing regarding a potential bootstrap API which would be the replacement. It's not fully decided yet though.
FWIW this is now just a solution which drains the queue if it reaches an arbitrary size. We could make the size configurable with a system property.