diff --git a/distro/Makefile b/distro/Makefile index f6543dcc..bc485bc3 100644 --- a/distro/Makefile +++ b/distro/Makefile @@ -12,6 +12,7 @@ MC_INSTALL_NAME=hazelcast-management-center-${MC_VERSION} MC_INSTALL_TAR=${MC_INSTALL_NAME}.tar.gz HZ_BIN=${DIST}/${HZ_INSTALL_NAME}/bin HZ_LIB=${DIST}/${HZ_INSTALL_NAME}/lib +HZ_CONFIG=${DIST}/${HZ_INSTALL_NAME}/config DIST=build/dist .PHONY: all clean clean-all clean-dist get-artifacts package @@ -51,6 +52,7 @@ get-artifacts: cp src/bin/download/hazelcast-download.properties ${HZ_BIN}/download cp src/bin/hazelcast-*-logging.properties ${HZ_BIN} cp src/bin/hz ${HZ_BIN} + cp src/config/log4j2.properties ${HZ_CONFIG} sed -i.bak 's+HZ_VERSION+${HZ_VERSION}+g' ${HZ_BIN}/hz sed -i.bak 's+CLI_VERSION+${CLI_VERSION}+g' ${HZ_BIN}/hz rm ${HZ_BIN}/hz.bak diff --git a/distro/src/config/log4j2.properties b/distro/src/config/log4j2.properties new file mode 100644 index 00000000..118969e4 --- /dev/null +++ b/distro/src/config/log4j2.properties @@ -0,0 +1,32 @@ +# +# Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +appender.console.type=Console +appender.console.name=STDOUT +appender.console.layout.type=PatternLayout +# There is an issue with the default logging pattern on s390x architecture +# This is set in the hazelcast-start script based on the running architecture +appender.console.layout.pattern=${env:LOGGING_PATTERN} + +rootLogger.level=${env:LOGGING_LEVEL} +rootLogger.appenderRef.stdout.ref=STDOUT + +logger.internal.name=com.hazelcast.internal.cluster +# Change this level to debug to diagnose failed cluster formation: +logger.internal.level=${env:LOGGING_LEVEL} + +logger.jet.name=com.hazelcast.jet +# Change this level to debug to add more logging for Jet: +logger.jet.level=${env:LOGGING_LEVEL}