cats-effect icon indicating copy to clipboard operation
cats-effect copied to clipboard

Make cpu starvation warning's logging destination configurable

Open manuelcueto opened this issue 2 years ago • 1 comments

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) .

manuelcueto avatar Mar 15 '23 09:03 manuelcueto

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

manuelcueto avatar Mar 15 '23 11:03 manuelcueto