Interface ISagaLogger

All Known Implementing Classes:
SagaLogger

public interface ISagaLogger

ISagaLogger is the main interface for logging in Saga SDK. It is expected that logging takes place through concrete implementations of this interface.

Typical usage pattern:

 import com.persequor.extension.logging.ISagaLogger;
 import com.persequor.extension.logging.LoggingCategory;
 import com.persequor.extension.logging.LoggingContext;
 import com.persequor.extension.logging.LoggingMessage;

 public class LoggingExampleController {
        private ISagaLogger logger = sagaLoggerFactory.get(getClass());

        public void helloWithCustomLoggingContext() {
                // this logging will override LoggingContext provided when getting an instance of ISagaLogger from the factory
                logger.info(LoggingCategory.SYSTEM, LoggingContext.CORE, LoggingMessage.of("hello from custom context"), LoggingMessage.of("our Recomendation"));
    }
 }