All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.opencredo.concursus.domain.commands.dispatching.Slf4jCommandLog Maven / Gradle / Ivy

The newest version!
package com.opencredo.concursus.domain.commands.dispatching;

import com.opencredo.concursus.domain.commands.Command;
import com.opencredo.concursus.domain.commands.CommandResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public final class Slf4jCommandLog implements CommandLog {

    private static final Logger LOGGER = LoggerFactory.getLogger(Slf4jCommandLog.class);

    @Override
    public void logProcessedCommand(Command processedCommand) {
        LOGGER.info("Received command {}", processedCommand);
    }

    @Override
    public void logCommandResult(CommandResult commandResult) {
         LOGGER.info("Command completed {}", commandResult);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy