-
Notifications
You must be signed in to change notification settings - Fork 82
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
Conversation
There was a problem hiding this 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.
hazelcast-enterprise/Dockerfile
Outdated
|
||
# Install | ||
RUN echo "Updating Alpine system" \ | ||
&& apk add --no-cache nss \ |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
).
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Rafal!
@kwart Thanks for the review. I addressed your comments. PTAL. |
Changes:
logging.properties
fileLOGGING_LEVEL
to enable changing logging level while starting the containerapk add --no-cache nss
(unrelated, but needed because of the change in Alpine, read more here)fix #108