bnd icon indicating copy to clipboard operation
bnd copied to clipboard

[Feature Request] Option to disable trace logs in `aQute.remote.util.Link<L, R>`

Open amitjoy opened this issue 3 years ago • 5 comments

External applications could make use of Bnd Remote Agent to connect to remote runtimes and the trace logs appear consistently and pollutes the remote runtime console heavily. It would be better to introduce a system property to disable the logging on demand.

amitjoy avatar May 06 '22 12:05 amitjoy

The logging is SLF4J logging so you have complete control over the log output. When using the slf4j-simple binding, you can use the system property -Dorg.slf4j.simpleLogger.log.aQute.lib.link.Link=error to only display the error level log output. If using a different slf4j binding, you will need to configure the log level according to the binding's documentation.

bjhargrave avatar May 06 '22 12:05 bjhargrave

When launching Bndtools for testing/debugging, we use the logback slf4j binding with this configuration file to control the log levels for various loggers.

bjhargrave avatar May 06 '22 12:05 bjhargrave

I think we need to introduce logging support here

amitjoy avatar May 06 '22 15:05 amitjoy

I think we need to introduce logging support here

In the title of this issue you named aQute.lib.link.Link which is, of course, where I looked. Now you seem to instead be talking about aQute.remote.util.Link which is a different class. Please correct the title to refer to the class you are talking about. Thanks.

bjhargrave avatar May 06 '22 16:05 bjhargrave

Yeah, you are right. It was confusing. My bad!! I will change it right away.

amitjoy avatar May 06 '22 16:05 amitjoy

Closed by https://github.com/bndtools/bnd/pull/5345

pkriens avatar Aug 19 '22 10:08 pkriens