Search in sources :

Example 1 with BetterMessageLogger

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;
}
Also used : MemberId(org.neo4j.causalclustering.identity.MemberId) BetterMessageLogger(org.neo4j.causalclustering.logging.BetterMessageLogger) PhysicalLogFile(org.neo4j.kernel.impl.transaction.log.PhysicalLogFile) File(java.io.File)

Aggregations

File (java.io.File)1 MemberId (org.neo4j.causalclustering.identity.MemberId)1 BetterMessageLogger (org.neo4j.causalclustering.logging.BetterMessageLogger)1 PhysicalLogFile (org.neo4j.kernel.impl.transaction.log.PhysicalLogFile)1