cats-effect
cats-effect copied to clipboard
Make cpu starvation warning's logging destination configurable
As mentioned here
This warning log logs directly to System.err, which might be undesirable if the application leverages some custom Logging (i.e Logback, log4cats).
the CpuStarvationCheck should contain a configurable Console(most likely through IORuntimeConfig) .
Working on it :).
However at a first glance, a Console is too big an abstraction for this functionality. It probably is out of scope, but Something like
trait Console extends ConsoleReader with ConsoleWriter
would make sense, and then CpuStarvationCheck should only need a ConsoleWriter in reality