Skip to content

Commit

Permalink
Use log4j2 config without file appender
Browse files Browse the repository at this point in the history
  • Loading branch information
frant-hartm committed Aug 10, 2021
1 parent 04646d6 commit 2f45d25
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions distro/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
32 changes: 32 additions & 0 deletions distro/src/config/log4j2.properties
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit 2f45d25

Please sign in to comment.