This is very helpful. Did not even consider using reflection. I adapted your method into a static utility method that given a Project instance, will return the logging level for it.
Thanks, --ewh On Mon, Oct 10, 2022, 11:56 PM Gilles Querret < g.quer...@riverside-software.fr> wrote: > > So far I've used this workaround to retrieve the log level: > > https://github.com/Riverside-Software/pct/blob/d8446a002aaf2efb255d2016a16e9a71f7ad269f/src/java/com/phenix/pct/PCT.java#L593 > Usage in the Ant task: > > https://github.com/Riverside-Software/pct/blob/master/src/java/com/phenix/pct/PCTRun.java#L475 > > Code was written years ago, there might be a better solution now. > > Gilles >