8000 Unclear how to enable logging · Issue #173 · jawi/ols · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Unclear how to enable logging #173
Closed
@matthijskooijman

Description

@matthijskooijman

While debugging a stability issue (which I eventually fixed by upgrading the BP firmware to 6.3-beta1), I tried to enable the logging features of OLS, to see where in the process things went wrong.

However, I couldn't get this to work, it is completely unclear to me how the logging is supposed to work. I tried passing -Dnl.lxtreme.ols.client.debug=true, but that only enabled some early debugging messages. I tried creating a logging.properties file and pointing java at it using -Djava.util.logging.config.file, but that only worked for a bit more, but still not all, messages at the start of the program run.

I found this JdkLogForwarder class which apparently forwards java.util.logging messages to the osgi logger, but I couldn't quite figure out where to configure that osgi logger to properly enable logging. I ended up just hacking JdkLogForwarder to print logmessages (except for the java.awt.* and sun.* spam) to stdout which worked, but of course isn't quite pretty.

Perhaps the proper procedure could be documented somewhere?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0