Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setting logging level and building custom docker images #111

Merged
merged 2 commits into from
Apr 2, 2019

Conversation

leszko
Copy link

@leszko leszko commented Apr 1, 2019

Changes:

  • Add default logging.properties file
  • Add property LOGGING_LEVEL to enable changing logging level while starting the container
  • Add description on how to build custom Hazelcast Image for testing
  • Add apk add --no-cache nss (unrelated, but needed because of the change in Alpine, read more here)

fix #108

@leszko leszko requested review from mesutcelik and kwart April 1, 2019 09:24
Copy link
Contributor

@kwart kwart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few minor things, otherwise LGTM.


# Install
RUN echo "Updating Alpine system" \
&& apk add --no-cache nss \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move just the nss 3 lines down to another apk add?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

# can be overriden by a facility specific level
# Note that the ConsoleHandler also has a separate level
# setting to limit messages printed to the console.
.level= INFO
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicating keys in property files can be confusing. We should either have the logging.properties without the keys and append them when starting container or we should simply substitute the existing values (sed).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -84,6 +84,16 @@ $ docker run -e MANCENTER_URL=<mancenter_url> hazelcast/hazelcast-enterprise

The port of the JMX Prometheus agent. For example, if you set `PROMETHEUS_PORT=8080`, then you can access metrics at: `http://<hostname>:8080/metrics`. You can also use `PROMETHEUS_CONFIG` to set a path to the custom configuration.

### LOGGING_LEVEL

The logging level can be changed using the `LOGGING_LEVEL` variable, for example, to see the `FINEST` logs.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we list possible values here or add a link to the Level class JavaDoc?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor

@mesutcelik mesutcelik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Rafal!

@leszko leszko requested a review from kwart April 1, 2019 14:59
@leszko
Copy link
Author

leszko commented Apr 1, 2019

@kwart Thanks for the review. I addressed your comments. PTAL.

@leszko leszko merged commit 2d4f427 into hazelcast:master Apr 2, 2019
@leszko leszko deleted the dev branch April 2, 2019 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a custom branch for development & testing
3 participants