Hello,
I am facing an issue on the Hazelcast logging part.
Actually, I would like to stop using JDK logging and move to log4j logging.
So I did an update on my hazelcast.xml file as bellow:
<properties>
<property name="hazelcast.logging.type">log4j</property>
<property name="log4j.configuration">log4j.properties</property>
</properties>
Then, log4j.properties 's content:
log4j.rootLogger=INFO,file
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=hazelcast.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %p [%c{1}] - %m%n
log4j.appender.file.maxFileSize=50MB
log4j.appender.file.maxBackupIndex=100
log4j.appender.file.threshold=DEBUG
log4j.logger.com.hazelcast=debug
log4j.logger.com.hazelcast.cluster=debug
#log4j.logger.com.hazelcast.partition=debug
#log4j.logger.com.hazelcast.partition.InternalPartitionService=debug
#log4j.logger.com.hazelcast.nio=debug
#log4j.logger.com.hazelcast.hibernate=debug
I created a hazeIcast.log file
I also added a log4j jar into user-lib folder
But when I start hazelcast, it's not loading any more and so it did not start.
So can you tell me if I am doing something wrong.
The logging conf seems ok but I am blocked at this step since Hazelcast won't start any more.
Best regards
Karim