Skip to content

Logging is turned off by default when application uses java.util.logging #118

@psefranek

Description

@psefranek

As can be seen in class org.springframework.boot.loader.thin.ThinJarLauncher, logging is turned off several times (by calling LogUtils.setLogLevel(Level.OFF)). However it seems that logging is never turned back on. If launched application uses standard java.util.logging.Logger all messages are discarded.

As a workaround one can run jar with system property -Dthin.debug=true which restores logging level to default INFO (line 172 in class ThinJarLauncher). However I think that log level should be restored to standard Java's default (INFO) regardless of whether debug system property was used or not.

Thanks for your time and keep up the good work!
Pavel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions