Re: New API for log level manipulation

2024-10-31 Thread Piotr P. Karwasz
Hi Gary, On 31.10.2024 17:12, Gary Gregory wrote: set the configured level of a single logger Some people (like me) will want to enable debug all in one go for example, even for loggers that have not been instantiated yet. I think we should distinguish whether this is set the level for a hie

New API for log level manipulation

2024-10-31 Thread Piotr P. Karwasz
Hi all, In last few days I have encountered the problem of retrieving and setting the configured level of a logger twice (in Nashorn[1] and Apache Kafka[2]). What do you think about introducing a public API to do this sort of things in an implementation independent way? Currently we have `o.

Re: New API for log level manipulation

2024-10-31 Thread Gary Gregory
Good idea! One way I like to think about this is what is the API I need to build a tree view UI that shows the logger hierarchy where I can toggle levels for one logger or one logger tree (including the root). >set the configured level of a single logger Some people (like me) will want to enable

Re: New API for log level manipulation

2024-10-31 Thread Gary Gregory
Hi Piotr, I would expect the LCD to allow LogManager.setLevel("com.gary.app", "debug") Having a Level version is OK as well. Gary On Thu, Oct 31, 2024, 1:25 PM Piotr P. Karwasz wrote: > Hi Gary, > > On 31.10.2024 17:12, Gary Gregory wrote: > > > >> set the configured level of a single logger