use of org.neo4j.causalclustering.logging.BetterMessageLogger in project neo4j by neo4j.
the class EnterpriseCoreEditionModule method createMessageLogger.
private MessageLogger<MemberId> createMessageLogger(Config config, LifeSupport life, MemberId myself) {
final MessageLogger<MemberId> messageLogger;
if (config.get(CausalClusteringSettings.raft_messages_log_enable)) {
File logsDir = config.get(GraphDatabaseSettings.logs_directory);
messageLogger = life.add(new BetterMessageLogger<>(myself, raftMessagesLog(logsDir)));
} else {
messageLogger = new NullMessageLogger<>();
}
return messageLogger;
}
Aggregations